Correctly re-initialize signal handlers on RESTART

This fixes part 2 of bug #127 :-)
This commit is contained in:
Alexander Barton 2012-09-11 15:44:31 +02:00
parent f5441d2170
commit 0fd9a8505a
2 changed files with 2 additions and 0 deletions

View File

@ -330,6 +330,7 @@ main(int argc, const char *argv[])
Channel_Exit();
Class_Exit();
Log_Exit();
Signals_Exit();
}
Pidfile_Delete();

View File

@ -334,6 +334,7 @@ Signals_Exit(void)
#endif
close(signalpipe[1]);
close(signalpipe[0]);
signalpipe[0] = signalpipe[1] = 0;
}
/* -eof- */