Commit 6d5f68b3 authored by venaas's avatar venaas Committed by venaas
Browse files

changed signal handling slightly so it works as expected on BSD

git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@232 e88ac4ed-0b26-0410-9574-a7f39faa03bf
parent 8a39c047
......@@ -3072,7 +3072,7 @@ void *sighandler(void *arg) {
for(;;) {
sigemptyset(&sigset);
sigaddset(&sigset, SIGPIPE);
sigwait(&sigset, &sig);
sigwait(&sigset, &sig);
/* only get SIGPIPE right now, so could simplify below code */
switch (sig) {
case 0:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment