commit | e81e87f8d408d965b3baab14910eb0b08c428600 | [log] [tgz] |
---|---|---|
author | Andorz Nilsson <andorz.nilsson@axis.com> | Sun Oct 18 03:49:00 2009 +0200 |
committer | Lennart Poettering <lennart@poettering.net> | Sun Oct 18 03:49:00 2009 +0200 |
tree | 1c7482922ac2756ceeef590a3ea24637bc936855 | |
parent | a07c294e3d8242c98e6ada199268fde6bad1574b [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)