libowfat/io/io_sigpipe.c
leitner 9eb09b5bfe add iob_free and man page for iob_reset.
check in some windoze compat crap (still does not compile through for
windoze)
2005-03-08 14:56:36 +00:00

16 lines
289 B
C

#include "io_internal.h"
#include <sys/types.h>
#include <signal.h>
/* this is an internal function, called by io_trywrite and io_waitwrite */
void io_sigpipe(void) {
#ifndef __MINGW32__
static int isitdone;
if (!isitdone) {
signal(SIGPIPE,SIG_IGN);
isitdone=1;
}
#endif
}