Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!ginosko!uunet!mcsun!mcvax!piring.cwi.nl!guido From: guido@piring.cwi.nl (Guido van Rossum) Newsgroups: comp.unix.wizards Subject: suspend question Message-ID: <8397@boring.cwi.nl> Date: 11 Sep 89 12:08:09 GMT Sender: news@cwi.nl Lines: 25 The following puzzles me: if I start a background process with a shell escape from an editor (so the editor's shell escape command returns while the process remains in the background), and then suspend the editor wit ^Z, the background process dies. This happens in various editors (ed, vi), shells (csh, ksh) and OS versions (Ultrix 2.2 and 3.1, BSD 4.3tahoe, SunOS 4.0.3), to such diverse applications as sleep and xterm. A little test program shows that it dies of the SIGTSTP that is sent to the process group, which is strange because the man page for sigvec promises that the process will be suspended, not killed in this case (default signal action). The only explanation that I can find is that the kernel decides that since the process's parent has died, it makes no sense to suspend it; however, since it was started by a non-interactive shell (from the editor's shell escape), it is in the same process group as the editor from which it was (indirectly) started. Any gurus care to explain the reason for this behavior? -- Guido van Rossum, Centre for Mathematics and Computer Science (CWI), Amsterdam guido@cwi.nl or mcvax!guido or guido%cwi.nl@uunet.uu.net "You're so *digital*, girl!" -- Neneh Cherry