ignore sigpipe
authorJohn Crispin <blogic@openwrt.org>
Mon, 22 Apr 2013 10:58:01 +0000 (12:58 +0200)
committerJohn Crispin <blogic@openwrt.org>
Tue, 23 Apr 2013 16:54:03 +0000 (18:54 +0200)
Signed-off-by: John Crispin <blogic@openwrt.org>
signal.c

index f705e5d2a091729240b66877a4934127a3178a48..b62da0a8c1ce1016f0051959390e25ac88b030cb 100644 (file)
--- a/signal.c
+++ b/signal.c
@@ -85,7 +85,7 @@ struct sigaction sa_dummy = {
 
 void procd_signal(void)
 {
-       sigaction(SIGPIPE, &sa_dummy, NULL);
+       signal(SIGPIPE, SIG_IGN);
        if (getpid() != 1)
                return;
        sigaction(SIGTERM, &sa_shutdown, NULL);