summaryrefslogtreecommitdiff
path: root/source3/wscript_build
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2015-11-02 12:47:13 +0100
committerVolker Lendecke <vl@samba.org>2015-11-16 14:51:33 +0100
commite3e0a295c3fc25391260a8bb7d7d29137f7129fa (patch)
treed289cd103775768dd8b5d7d329a82f3c67c6602d /source3/wscript_build
parentdb99742d8b15cc1c48421a4720a43dff72c6ba1b (diff)
downloadsamba-e3e0a295c3fc25391260a8bb7d7d29137f7129fa.tar.gz
smbd: Implement a cleanup daemon
We do way too much stuff in the parent smbd in remove_child_pid(). In particular accessing ctdbd is not a good idea when ctdbd is stuck in something. We've had a case where smbd exited itself with "ctdb timeout" being set to 60 seconds. ctdb was just stuck doing recoveries, and the parent smbd was sitting in serverid_exists trying to retrieve a record for a child that had exited. Not good. This daemon sits there as parent->cleanupd and receives MSG_SMB_NOTIFY_CLEANUP messages that hold the serverid and exit status of a former child. The next commits will step by step empty remove_child_pid in the parent and move the tasks to the helper. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'source3/wscript_build')
-rwxr-xr-xsource3/wscript_build2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/wscript_build b/source3/wscript_build
index 4c6390e7d53..b5b5ea0a482 100755
--- a/source3/wscript_build
+++ b/source3/wscript_build
@@ -858,7 +858,7 @@ bld.SAMBA3_SUBSYSTEM('LIBLSA',
########################## BINARIES #################################
bld.SAMBA3_BINARY('smbd/smbd',
- source='smbd/server.c',
+ source='smbd/server.c smbd/smbd_cleanupd.c',
deps='smbd_base EPMD LSASD FSSD MDSSD',
install_path='${SBINDIR}')