Commit 8a39c047 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: e88ac4ed-0b26-0410-9574-a7f39faa03bf
parent 3c58a545
......@@ -3070,8 +3070,10 @@ void *sighandler(void *arg) {
int sig;
for(;;) {
sigaddset(&sigset, SIGPIPE);
sigwait(&sigset, &sig);
/* only get SIGPIPE right now, so could simplify below code */
switch (sig) {
case 0:
/* completely ignoring this */
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