Why fork() before setsid()
- by corentin.kerisit
Why fork() before setsid() to daemonize a process ?
Basically, if I want to detach a process from its controlling terminal and make it a process group leader : I use setsid().
Doing this without forking before doesn't work.
Why ?
Thanks :)