add sigpipe helper

master
leitner 21 years ago
parent 1d9075071f
commit 24227e0e01

@ -0,0 +1,11 @@
#include "io_internal.h"
#include <sys/types.h>
#include <signal.h>
void io_sigpipe(void) {
static int isitdone;
if (!isitdone) {
signal(SIGPIPE,SIG_IGN);
isitdone=1;
}
}
Loading…
Cancel
Save