From 652d6bafd0d9e4daacc6043472ee278959b0499e Mon Sep 17 00:00:00 2001 From: venaas Date: Wed, 16 Apr 2008 07:49:58 +0000 Subject: changed signal handling slightly so it works as expected on BSD git-svn-id: https://svn.testnett.uninett.no/radsecproxy/branches/release-1.1@232 e88ac4ed-0b26-0410-9574-a7f39faa03bf --- radsecproxy.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'radsecproxy.c') diff --git a/radsecproxy.c b/radsecproxy.c index 33b2dd0..b12de9a 100644 --- a/radsecproxy.c +++ b/radsecproxy.c @@ -3057,8 +3057,10 @@ void *sighandler(void *arg) { int sig; for(;;) { - sigfillset(&sigset); - sigwait(&sigset, &sig); + sigemptyset(&sigset); + sigaddset(&sigset, SIGPIPE); + sigwait(&sigset, &sig); + /* only get SIGPIPE right now, so could simplify below code */ switch (sig) { case 0: /* completely ignoring this */ -- cgit v1.1