From: John Crispin Date: Mon, 22 Apr 2013 10:58:01 +0000 (+0200) Subject: ignore sigpipe X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7edfbb45edcf275a855f5e1f5cc24cac81e382ff;p=oweals%2Fprocd.git ignore sigpipe Signed-off-by: John Crispin --- diff --git a/signal.c b/signal.c index f705e5d..b62da0a 100644 --- 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);