From 4d915009cbeb3419321d639a5ad4fcf9417db4d3 Mon Sep 17 00:00:00 2001 From: dcp1990 Date: Sat, 25 Jun 2005 02:11:48 +0000 Subject: [PATCH] ignore sigpipe --- phoned/signals.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/phoned/signals.c b/phoned/signals.c index 9c38298..92a753c 100644 --- a/phoned/signals.c +++ b/phoned/signals.c @@ -53,6 +53,7 @@ void handsig(sig) case SIGHUP: lprintf(info, "Received HUP, rereading configuration files...\n"); break; + case SIGPIPE: default: lprintf(warn, "Received signal %d!\n", sig); } @@ -64,6 +65,7 @@ void install_handlers(void) signal(SIGQUIT, handsig); signal(SIGHUP, handsig); signal(SIGTERM, handsig); + signal(SIGPIPE, handsig); } void fillset(void) {