libowfat/io/io_sigpipe.c

16 lines
289 B
C
Raw Normal View History

2004-02-29 03:05:37 +00:00
#include "io_internal.h"
#include <sys/types.h>
#include <signal.h>
2004-03-02 20:02:23 +00:00
/* this is an internal function, called by io_trywrite and io_waitwrite */
2004-02-29 03:05:37 +00:00
void io_sigpipe(void) {
#ifndef __MINGW32__
2004-02-29 03:05:37 +00:00
static int isitdone;
if (!isitdone) {
signal(SIGPIPE,SIG_IGN);
isitdone=1;
}
#endif
2004-02-29 03:05:37 +00:00
}