Proposal for a new syscall
pitchfork() - daemon fork
Much like fork(), except that the new child automatically also setsid()'s and:
- Has a umask of 0 and working directory "/"
- SIGHUP set to ignore
- Gets new stdin, stdout, stderr handles, all tied to /dev/null
[ Apologizes to non-unix-geek readers. Maybe you'll like my next post. ]
Much like fork(), except that the new child automatically also setsid()'s and:
- Has a umask of 0 and working directory "/"
- SIGHUP set to ignore
- Gets new stdin, stdout, stderr handles, all tied to /dev/null
[ Apologizes to non-unix-geek readers. Maybe you'll like my next post. ]