Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/common/expr.h
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2014-01-02 16:57:44 +0100
committerArthur de Jong <arthur@arthurdejong.org>2014-01-02 22:50:20 +0100
commit42a1a3dbee96c209f5ccb97207d11f536253516c (patch)
treedc3b9827929f8a671583a3d50a67a43fd4e2a43f /common/expr.h
parente3f0453c482a386012a7f6e6f3942bb9635a0c19 (diff)
Properly daemonise nslcd and only exit when ready
This introduces a new daemonize module that provides functions for closing all file descriptors, redirecting stdin/stdout/stderr to /dev/null and a function for backgrounding an application while only exiting the original process after the daemon process has indicated readiness. This is used to exit the original process only after the listening socket has been set up and the worker threads have been started.
Diffstat (limited to 'common/expr.h')
0 files changed, 0 insertions, 0 deletions