You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
... at least with -o / -e, since these log files then open as fd 0 and/or 1. Maybe daemonize should call redirect_fds() in daemon.c before anything else (not after opening -o / -e)
Also, docs seem to imply that daemonize closes all fd's before starting the daemon. The daemon itself is not supposed to close all fd's, since otherwise it loses locking. But the question is what to do before starting the daemon (or daemonize itself, since it currently doesn't close fd's >= 3 and caller has to close those manually).
The text was updated successfully, but these errors were encountered:
... at least with
-o
/-e
, since these log files then open as fd 0 and/or 1. Maybe daemonize should callredirect_fds()
indaemon.c
before anything else (not after opening-o
/-e
)Also, docs seem to imply that daemonize closes all fd's before starting the daemon. The daemon itself is not supposed to close all fd's, since otherwise it loses locking. But the question is what to do before starting the daemon (or daemonize itself, since it currently doesn't close fd's >= 3 and caller has to close those manually).
The text was updated successfully, but these errors were encountered: