Find the answer to your Linux question:
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 ...
  1. #1
    Just 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.

  2. #2
    Just Joined!
    Join Date
    Jan 2007
    Posts
    90
    man 2 setsid

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...