[sr-dev] git:master: core: daemon status/pipe fixes & interface changes
Iñaki Baz Castillo
ibc at aliax.net
Fri Aug 20 19:38:04 CEST 2010
2010/8/19 Andrei Pelinescu-Onciul <andrei at iptel.org>:
> core: daemon status/pipe fixes & interface changes
>
> - moved most of the daemon status stuff to daemonize.[ch].
> - nicer interface (e.g. daemon_status_send(code))
> - send/read only 1 byte which will be used as exit code
> - send an error status on error (fixes
> "Main process exited before writing to pipe" error message)
> - disabled the timeout. Not needed (now a status is sent always
> and even an unlikely process crash before sending it is detected via
> the read() failure) and very hard to find a good value (some
> setups start very slow).
> - close the pipe "send" fd in processes not needing it
> - attempt to send back status only if dont_daemonize is not set
> (not only if dont_fork==0, it is possible to have forking
> enabled, but daemonize disabled: ser -DD)
> - BSDed daemonize.[ch] and pt.[ch]
Awesome :)
--
Iñaki Baz Castillo
<ibc at aliax.net>
More information about the sr-dev
mailing list