summaryrefslogtreecommitdiff
path: root/lib/util/become_daemon.c
AgeCommit message (Collapse)AuthorFilesLines
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