ignore sigpipe

This commit is contained in:
dcp1990 2005-06-25 02:11:48 +00:00
parent 1d9bbd6d10
commit 4d915009cb

View File

@ -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)
{ {