projects
/
ircu2.10.12-pk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add infrastructure to handle child processes exiting.
[ircu2.10.12-pk.git]
/
ircd
/
ircd.c
diff --git
a/ircd/ircd.c
b/ircd/ircd.c
index 3ba3af7dc5b8a0f9559fac536e0d90a95614833b..2c0046fecb9ac39193d6e568a60f2a22ab4670c3 100644
(file)
--- a/
ircd/ircd.c
+++ b/
ircd/ircd.c
@@
-180,6
+180,8
@@
void server_restart(const char *message)
close_connections(!(thisServer.bootopt & (BOOT_TTY | BOOT_DEBUG | BOOT_CHKCONF)));
+ reap_children();
+
execv(SPATH, thisServer.argv);
/* Have to reopen since it has been closed above */