summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorAndorz Nilsson <andorz.nilsson@axis.com>2009-10-18 03:49:00 +0200
committerLennart Poettering <lennart@poettering.net>2009-10-18 03:49:00 +0200
commite81e87f8d408d965b3baab14910eb0b08c428600 (patch)
tree1c7482922ac2756ceeef590a3ea24637bc936855 /examples
parenta07c294e3d8242c98e6ada199268fde6bad1574b (diff)
dfork: clean up forking logic
Call setsid() once only to make sure we get a process that is not a session leader or process group leader, and hence cannot acquire a controlling terminal. It looks like setpgid() (or setpgrp()) is used only when setsid() is not available. It looks like the call to ioctl() is necessary only for 4.3BSD. (Patch modified by Lennart Poettering)
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions