Correctly re-initialize signal handlers on RESTART
This fixes part 2 of bug #127 :-)
This commit is contained in:
parent
f5441d2170
commit
0fd9a8505a
|
@ -330,6 +330,7 @@ main(int argc, const char *argv[])
|
||||||
Channel_Exit();
|
Channel_Exit();
|
||||||
Class_Exit();
|
Class_Exit();
|
||||||
Log_Exit();
|
Log_Exit();
|
||||||
|
Signals_Exit();
|
||||||
}
|
}
|
||||||
Pidfile_Delete();
|
Pidfile_Delete();
|
||||||
|
|
||||||
|
|
|
@ -334,6 +334,7 @@ Signals_Exit(void)
|
||||||
#endif
|
#endif
|
||||||
close(signalpipe[1]);
|
close(signalpipe[1]);
|
||||||
close(signalpipe[0]);
|
close(signalpipe[0]);
|
||||||
|
signalpipe[0] = signalpipe[1] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -eof- */
|
/* -eof- */
|
||||||
|
|
Loading…
Reference in New Issue