Results 1 to 2 of 2
Using 'C' program system calls, I created a Daemon by forking a process, which forks a process, where its parent terminates. The final process has init(pid=1) as its parent. This ...
- 04-05-2007 #1Just Joined!
- Join Date
- Apr 2007
- Posts
- 4
Using system calls to run as NOHUP
Using 'C' program system calls, I created a Daemon by forking a process, which forks a process, where its parent terminates. The final process has init(pid=1) as its parent. This all works good. But the tty of the final process is still assigned the original terminal until I log out.
I would like to program using system calls to do NOHUP. How can I force NOHUP on the final process without logging out?
Thanks. Wish I were cruising.
- 04-05-2007 #2Just Joined!
- Join Date
- Jan 2007
- Posts
- 90
man 2 setsid


Reply With Quote