home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!sun-barr!olivea!mintaka.lcs.mit.edu!bloom-picayune.mit.edu!daemon
- From: hammond@kwhpc.caseng.com (Kevin W. Hammond)
- Newsgroups: comp.os.linux
- Subject: Re: Background processes not dying on parent exit
- Message-ID: <1992Aug31.133521.23250@athena.mit.edu>
- Date: 31 Aug 92 13:35:21 GMT
- Sender: daemon@athena.mit.edu (Mr Background)
- Reply-To: hammond@kwhpc.caseng.com
- Organization: The Internet
- Lines: 27
-
- |
- | In article <1992Aug31.040048.27053@athena.mit.edu> you write:
- | |>
- | |> I ran a process in the background from tcsh with the ampersand (&). I would
- | |> have expected that when I logged out of the shell that my background processes
- | |> would have died as well, but they didn't.
- | |>
- | |> Is the shell responsible for killing the background processes, or, since the
- | |> shell is the parent of them and has been terminated, shouldn't the OS kill
- | |> the processes automatically?
- | |>
- |
- | This is what is supposed to happen. This allows you to start a long job and
- | logout, allowing another person to use the computer while your job is running.
- |
-
- I thought that was supposed to happen only if you ran the background job via
- nohup. In otherwords, when then parent shell would exit, it would send SIGHUP
- to all of it's children, letting them know the parent was exiting. Running
- the program nohup would make the child immune to such a signal.
-
- -kwh-
- --
- Kevin W. Hammond
- hammond@kwhpc.caseng.com
-
- CASE Engineering * 575 W. Madison #1601 * Chicago, IL 60661 * (312)902-2161
-