X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=man%2Fdaemon.xml;h=0085ad34faa51e1df2e6cb3e50502b1d6a9612d9;hb=623538c3125fd0174513e4ef5b0e6163f4ea41ef;hp=ab58d08a76424b9bd9ea3b64016e215538479f12;hpb=27d14fb331ba8144f99f4da2d13f15cf5c8b8a9f;p=elogind.git diff --git a/man/daemon.xml b/man/daemon.xml index ab58d08a7..0085ad34f 100644 --- a/man/daemon.xml +++ b/man/daemon.xml @@ -74,8 +74,8 @@ Close all open file - descriptors except stdin, stdout, - stderr (i.e. the first three file + descriptors except standard input, output, + and error (i.e. the first three file descriptors 0, 1, 2). This ensures that no accidentally passed file descriptor stays around in the daemon @@ -158,9 +158,7 @@ it is verified at the same time that the PID previously stored in the PID file no longer exists or belongs to a - foreign process. Commonly, some kind of - file locking is employed to implement - this logic. + foreign process. In the daemon process, drop privileges, if possible and @@ -354,7 +352,7 @@ These recommendations are similar but not identical to the Apple + url="https://developer.apple.com/library/mac/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingLaunchdJobs.html">Apple MacOS X Daemon Requirements.