From 4fcad237b435fa8f172f9beef7eece47258db40c Mon Sep 17 00:00:00 2001 From: Thomas Ries Date: Fri, 8 Jun 2007 19:42:10 +0000 Subject: [PATCH] added SIGPIPE handler --- src/siproxd.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/siproxd.c b/src/siproxd.c index cf17776..896be55 100644 --- a/src/siproxd.c +++ b/src/siproxd.c @@ -1,5 +1,5 @@ -/* -*- Mode: C; c-basic-offset: 3 -*- - Copyright (C) 2002-2005 Thomas Ries +/* + Copyright (C) 2002-2007 Thomas Ries This file is part of Siproxd. @@ -116,6 +116,9 @@ int main (int argc, char *argv[]) if (sigaction(SIGUSR2, &act, NULL)) { ERROR("Failed to install SIGUSR2 handler"); } + if (sigaction(SIGPIPE, &act, NULL)) { + ERROR("Failed to install SIGPIPE handler"); + } /*