summaryrefslogtreecommitdiff
path: root/lib/util/become_daemon.c
Commit message (Collapse)AuthorAgeFilesLines
* s3-smbd: Don't close stdout if we want to log to stdout.Andreas Schneider2010-03-261-4/+6
|
* Refactored sys_fork() and sys_pid() into shared util librarySteven Danneman2009-02-231-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().
* Moved become_daemon() and close_low_fds() to shared util libSteven Danneman2009-02-201-11/+11
|
* Move lib/util from source4 to top-level libutil.Jelmer Vernooij2008-10-111-0/+93
Conflicts: source4/Makefile