Add infrastructure to handle child processes exiting.
[ircu2.10.12-pk.git] / ircd / ircd.c
index 3ba3af7dc5b8a0f9559fac536e0d90a95614833b..2c0046fecb9ac39193d6e568a60f2a22ab4670c3 100644 (file)
@@ -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 */