From 24227e0e0181a52ab49420fefd71df19d6971685 Mon Sep 17 00:00:00 2001 From: leitner Date: Sun, 29 Feb 2004 03:05:37 +0000 Subject: [PATCH] add sigpipe helper --- io/io_sigpipe.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 io/io_sigpipe.c diff --git a/io/io_sigpipe.c b/io/io_sigpipe.c new file mode 100644 index 0000000..379dacc --- /dev/null +++ b/io/io_sigpipe.c @@ -0,0 +1,11 @@ +#include "io_internal.h" +#include +#include + +void io_sigpipe(void) { + static int isitdone; + if (!isitdone) { + signal(SIGPIPE,SIG_IGN); + isitdone=1; + } +}