Open GoogleCodeExporter opened 9 years ago
> Maybe specific to Debians sh (dash 0.5.7).
Not so. The daemon creates its own process group, and the signal sent to the
shell does not reach it.
Creating a process group even with --no-detach was added in 2003 by mbp. I
suppose because this is desirable for managing the children. Without reworking
the child management, --no-detach can use various non-portable ways to detect
the death of its parent as suggested in [1].
Original comment by mand...@gmail.com
on 27 May 2013 at 5:03
[1]
<http://stackoverflow.com/questions/284325/how-to-make-child-process-die-after-p
arent-exits>
The Linux suggestion of course works:
prctl(PR_SET_PDEATHSIG, SIGHUP);
others could be use depending on the platform in a best effort approach.
Original comment by mand...@gmail.com
on 27 May 2013 at 5:17
Original issue reported on code.google.com by
mand...@gmail.com
on 25 May 2013 at 4:51