>
> dmarkh <
dma...@cfl.rr.com> wrote:
> > On May 22, 3:18 pm, Huibert Bol <
huibert....@quicknet.nl> wrote:
> > > dmarkh <
dma...@cfl.rr.com> wrote:
> > > > When I
> > > > send SIGSTOP to one of these processes, it EXITS instead of pausing.
>
> > > Actually, it gets killed (SIGHUP) by the kernel when it's parent exits.
> > > You might want to read up on "orphaned process groups".
>
> > No, if I don't send the SIGSTOP, the task stays running. If I comment
> > out the SIGSTOP code, when I get a shell prompt back, I can pause and
> > continue the task "tsttsk" via "#kill -s SIGSTOP/SIGCONT pid". So the
> > task "tsttsk" is NOT exiting when the parent "tskmgt" exits. It exits
> > only when I send it a SIGSTOP.
>
> Did you follow the URL I just posted? A process is only sent SIGHUP if
> it's in an orphaned process group AND it's in the stopped state.
>
> Change your test program so that the parent process doesn't exit, and
> you should see that the child does NOT get killed when you send the
> SIGSTOP.
>
the child exits. Even if the parent does not exit, the child does when
it gets SIGSTOP. I've already done this with my real app and the test