Handle sigpipe
This commit is contained in:
parent
0cecdf5879
commit
dab76f2e8a
1 changed files with 1 additions and 0 deletions
|
@ -42,6 +42,7 @@ void handsig(sig)
|
||||||
case SIGINT:
|
case SIGINT:
|
||||||
case SIGQUIT:
|
case SIGQUIT:
|
||||||
case SIGTERM:
|
case SIGTERM:
|
||||||
|
case SIGPIPE:
|
||||||
lprintf(fatal, "Received signal %d, cleaning up...\n", sig);
|
lprintf(fatal, "Received signal %d, cleaning up...\n", sig);
|
||||||
shutd();
|
shutd();
|
||||||
exit(0);
|
exit(0);
|
||||||
|
|
Loading…
Reference in a new issue