diff options
author | venaas <venaas> | 2008-04-16 07:49:58 +0000 |
---|---|---|
committer | venaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf> | 2008-04-16 07:49:58 +0000 |
commit | 652d6bafd0d9e4daacc6043472ee278959b0499e (patch) | |
tree | ec28abe6323ce2deaf79f78637fa0c97ebf71d16 /radsecproxy.c | |
parent | 324054ce0cd8d39c5727b521bf97218b1e3090e9 (diff) |
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
Diffstat (limited to 'radsecproxy.c')
-rw-r--r-- | radsecproxy.c | 6 |
1 files changed, 4 insertions, 2 deletions
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 */ |