mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
c271dc998b
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 |
||
---|---|---|
.. | ||
config.mk | ||
pidfile.c | ||
process_model.c | ||
process_model.h | ||
process_model.m4 | ||
process_model.mk | ||
process_prefork.c | ||
process_single.c | ||
process_standard.c | ||
process_thread.c | ||
samba.8.xml | ||
server.c | ||
service_named_pipe.c | ||
service_stream.c | ||
service_stream.h | ||
service_task.c | ||
service_task.h | ||
service.c | ||
service.h |