summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvenaas <venaas>2008-04-16 07:42:46 +0000
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2008-04-16 07:42:46 +0000
commit8a39c04743dfaceb92e01bf937766a2f35bc92b4 (patch)
treea9136a46e4e19b8853c2cfa0cd489a5b4b941e0e
parent3c58a54570cfcebaff16d713fcfa02426152c824 (diff)
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
-rw-r--r--radsecproxy.c4
1 files changed, 3 insertions, 1 deletions
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 */