Subject: Re: bug#3608: BG processes killed by start-process

From: Andreas Schwab <[email-masked]>
Date: Sat, 17 Sep 2011 08:58:18 +0200

JD Smith <[email-masked]> writes:

> Start-process seems to kill off child processes of which have been put
> into the background.
>
> Create a small shell script "bgtest":
>
> #!/bin/sh
> sleep 121 &
> exit 0
>
> and now
>
> (start-process "BGTEST" nil "bgtest")
>
> Notice that the sleep process has been killed, rather than waited on.

That's not a bug.  The session created for the process is closed when
the process exits, which causes the kernel to send SIGHUP to all
remaining processes in the session.

Andreas.

-- 
Andreas Schwab, [email-masked]
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."