By unlinking from the dispatcher early, we prevented it from being
closed in the child, leaving an open listening fd on the main hfaxd
port.
If the main (parent) hfaxd exits, the child will inheret the listen
but won't actually include it in it's selects, or handle it. It just
prevents a new master hfaxd from binding to it.
* with servers started via inetd).
*/
HylaFAXServer* app; app = newChild(); // XXX for __GNUC__
- Dispatcher::instance().unlink(fd);
HylaFAXServer::closeLogging(); // close any open syslog fd
HylaFAXServer::closeAllDispatched();
Sys::close(STDERR_FILENO);