From 8a39c04743dfaceb92e01bf937766a2f35bc92b4 Mon Sep 17 00:00:00 2001 From: venaas Date: Wed, 16 Apr 2008 07:42:46 +0000 Subject: changed signal handling slightly so it works as expected on BSD git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@231 e88ac4ed-0b26-0410-9574-a7f39faa03bf --- radsecproxy.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/radsecproxy.c b/radsecproxy.c index c5c5375..0d96795 100644 --- a/radsecproxy.c +++ b/radsecproxy.c @@ -3070,8 +3070,10 @@ void *sighandler(void *arg) { int sig; for(;;) { - sigfillset(&sigset); + 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