Browse Source

add sigpipe helper

master
Felix von Leitner 17 years ago
parent
commit
654075d0eb
1 changed files with 11 additions and 0 deletions
  1. +11
    -0
      io/io_sigpipe.c

+ 11
- 0
io/io_sigpipe.c View File

@ -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