You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
libowfat/io/io_sigpipe.c

14 lines
262 B

#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) {
static int isitdone;
if (!isitdone) {
signal(SIGPIPE,SIG_IGN);
isitdone=1;
}
}