Catch SIGIOT

This commit is contained in:
Michiel Broek 2007-09-02 10:05:57 +00:00
parent 172d07b045
commit 779cdda1f2

View File

@ -1553,7 +1553,7 @@ int main(int argc, char **argv)
* but that's live. This daemon should only be stopped by SIGTERM. * but that's live. This daemon should only be stopped by SIGTERM.
*/ */
for (i = 0; i < NSIG; i++) { for (i = 0; i < NSIG; i++) {
if ((i == SIGHUP) || (i == SIGPIPE) || (i == SIGBUS) || (i == SIGILL) || (i == SIGSEGV)) if ((i == SIGHUP) || (i == SIGPIPE) || (i == SIGBUS) || (i == SIGILL) || (i == SIGSEGV)) || (i == SIGIOT)
signal(i, (void (*))die); signal(i, (void (*))die);
else if ((i == SIGINT) || (i == SIGTERM)) else if ((i == SIGINT) || (i == SIGTERM))
signal(i, (void (*))start_shutdown); signal(i, (void (*))start_shutdown);