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 f705e5d..b62da0a 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);