diff options
author | Andrew Tridgell <tridge@samba.org> | 2009-08-07 17:21:54 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2009-08-07 17:24:48 +1000 |
commit | c271dc998ba25101a46e7d4b2187567a07588ca2 (patch) | |
tree | 20270a68759dc336855a60ff704d201f91acc936 /source4/script/mkproto.pl | |
parent | cfc0cabb27c7323930b96dd93befa955bacd6cde (diff) | |
download | samba-c271dc998ba25101a46e7d4b2187567a07588ca2.tar.gz samba-c271dc998ba25101a46e7d4b2187567a07588ca2.tar.bz2 samba-c271dc998ba25101a46e7d4b2187567a07588ca2.zip |
ensure that child tasks die when the parent dies
Previously we relied on process groups and SIGTERM to ensure that
child tasks died in the standard process model when the parent task
died. This doesn't work when the server is run in interactive mode, as
in that case we don't call become_daemon() and don't get a separate
process group.
The fix is to have a pipe held open by the parent server process, and
inherited by child tasks. If the parent exits then the write side of
the pipe is implicitly closed, which causes an event in the child
tasks that causes them to exit
Diffstat (limited to 'source4/script/mkproto.pl')
0 files changed, 0 insertions, 0 deletions