ignore sigpipe
This commit is contained in:
parent
1d9bbd6d10
commit
4d915009cb
@ -53,6 +53,7 @@ void handsig(sig)
|
|||||||
case SIGHUP:
|
case SIGHUP:
|
||||||
lprintf(info, "Received HUP, rereading configuration files...\n");
|
lprintf(info, "Received HUP, rereading configuration files...\n");
|
||||||
break;
|
break;
|
||||||
|
case SIGPIPE:
|
||||||
default:
|
default:
|
||||||
lprintf(warn, "Received signal %d!\n", sig);
|
lprintf(warn, "Received signal %d!\n", sig);
|
||||||
}
|
}
|
||||||
@ -64,6 +65,7 @@ void install_handlers(void)
|
|||||||
signal(SIGQUIT, handsig);
|
signal(SIGQUIT, handsig);
|
||||||
signal(SIGHUP, handsig);
|
signal(SIGHUP, handsig);
|
||||||
signal(SIGTERM, handsig);
|
signal(SIGTERM, handsig);
|
||||||
|
signal(SIGPIPE, handsig);
|
||||||
}
|
}
|
||||||
void fillset(void)
|
void fillset(void)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user