summaryrefslogtreecommitdiff
path: root/radsecproxy.c
diff options
context:
space:
mode:
Diffstat (limited to 'radsecproxy.c')
-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 */