diff options
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 */ |