mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-09 11:13:13 +02:00
When using "RESTART" the newly started IRCd could possibly not log or been
missing other functionality. Reported by DarthGandalf in https://bugs.unrealircd.org/view.php?id=5918 The cause was that all fd's were closed, including 0/1/2. We now reopen those and map them to /dev/null, like we do later again.
This commit is contained in:
@@ -2480,6 +2480,7 @@ void server_reboot(const char *mesg)
|
||||
(void)close(2);
|
||||
(void)close(1);
|
||||
(void)close(0);
|
||||
close_std_descriptors();
|
||||
(void)execv(MYNAME, myargv);
|
||||
#else
|
||||
close_connections();
|
||||
|
||||
Reference in New Issue
Block a user