From: David Barr (barr@hardy.u.washington.edu)
Date: 08/31/92


From: barr@hardy.u.washington.edu (David Barr)
Subject: Re: Background processes not dying on parent exit
Date: 31 Aug 1992 07:10:11 GMT

hammond@kwhpc.caseng.com (Kevin W. Hammond) writes:

>I'm not sure if this is a shell problem or OS problem.

Neither; the behavior you are about to describe is normal.

> I'll start with the
>OS....

>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?

The processes are not supposed to go away unless they are suspended
for some reason. Another thing to watch out for: if someone logs in
on the tty you were on when you started the jobs, they will get the
output from your program.