summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2013-04-22 12:58:01 +0200
committerJohn Crispin <blogic@openwrt.org>2013-04-23 18:54:03 +0200
commit7edfbb45edcf275a855f5e1f5cc24cac81e382ff (patch)
tree1393c0bbd9cb52cebfb0d08155bb4f6d018a02ef
parent32f1c6e4679b6e0737616f3e58528531e826a3ce (diff)
downloadunitd-7edfbb45edcf275a855f5e1f5cc24cac81e382ff.tar
unitd-7edfbb45edcf275a855f5e1f5cc24cac81e382ff.zip
ignore sigpipe
Signed-off-by: John Crispin <blogic@openwrt.org>
-rw-r--r--signal.c2
1 files changed, 1 insertions, 1 deletions
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);