add sigpipe helper
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…
Reference in New Issue