summaryrefslogtreecommitdiff
path: root/lib/util/become_daemon.c
AgeCommit message (Collapse)AuthorFilesLines
2012-03-04change low FDs are handled in SambaAndrew Bartlett1-8/+14
We now only close fds 0, 1, 2 when we are a forked daemon, and take care not to close a file descriptor that we might need for foreground stdin monitoring. This should fix stdout logging in the lsa and epmapper deamons (ie in make test). Andrew Bartlett
2010-03-26s3-smbd: Don't close stdout if we want to log to stdout.Andreas Schneider1-4/+6
2009-02-23Refactored sys_fork() and sys_pid() into shared util librarySteven Danneman1-3/+3
This fixes a bug in 116ce19b, where we didn't clear the pid cache in become_daemon() and thus the /var/run/smbd.pid didn't match the actual pid of the parent process. Currently S4 will clear the pid cache on fork but doesn't yet take advantage of the pid cache by using sys_pid() instead of the direct get_pid().
2009-02-20Moved become_daemon() and close_low_fds() to shared util libSteven Danneman1-11/+11
2008-10-11Move lib/util from source4 to top-level libutil.Jelmer Vernooij1-0/+93
Conflicts: source4/Makefile