On Thu, Oct 21, 1999 at 12:46:02PM +0000, Richard Adams wrote:
> On Thu, 21 Oct 1999, LordX wrote:
> I cant imagen why something like that will not work, if a program is
> either started in the background with a &, or started without a &,
> then ctrl Z then type bg places that program in the background, then
> you should be able to logout without killing the process.
This doesn't work becasue when you log out, all of the
processes that are children of your login shell get HANGUP
signals. I believe the default behavior on getting a SIGHUP
is to exit. I just checked it with man & tcsh, and this
appears to be true. the program nohup runs your program,
but sets up a signal handeler which catches the SIGHUP and
ignores it so it doesn't ever make it to your program
greg