1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00
samba-mirror/source3
Ralph Boehme 4652a8b911 s3/cleanupd: use smbd_cleanupd.tdb
Instead of using messaging to send individual cleanup events, it works
this way:

o parent smbd stores cleanup events (ie exitted children) in
  smbd_cleanup.tdb

o it sends cleanupd an empty MSG_SMB_NOTIFY_CLEANUP message

o cleanupd does a traverse on the smbd_cleanupd.tdb and collects all
  childs in a list

o after the traverse cleanupd walks the list and does the real work

It would have been possible to optimize for the common case by passing
info about exitted childs with the message (as was done before this
patch), adding a new message type for triggering a db traverse that
would be used when cleanupd had to be restarted and cleanup events may
have been accumulated in cleanup.tdb.

But this could be subject to subtle race conditions and could loose
events if cleanupd dies randomly.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=12022

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
2016-07-28 05:00:18 +02:00
..
auth s4: messaging: Remove bool auto_remove parameter from imessaging_init(). 2016-07-23 06:04:11 +02:00
build waf: improve iconv checks 2014-01-03 05:04:44 +01:00
client s3-client: Fix compiler errors when building with --address-sanitizer 2016-06-16 04:40:13 +02:00
exports
groupdb Convert all uses of uint32/16/8 to _t in source3/groupdb. 2015-05-14 19:29:19 +02:00
include s3-messaging/ctdb: add messaging_ctdbd_reinit() 2016-07-11 20:05:06 +02:00
intl lang_tdb: don't leak lock_path or data_path onto talloc tos 2014-11-03 23:46:05 +01:00
lib s3/lib: add smbd_cleanupd.tdb 2016-07-28 05:00:18 +02:00
libads libads: improve debug messages in sitename_fetch() 2016-07-12 21:23:48 +02:00
libgpo gpo: don't leak cache_path onto talloc tos 2014-10-06 19:18:05 +02:00
libnet s3:libnet_dssync_keytab: ignore empty supplementalCredentialsBlob structures 2016-07-20 21:27:17 +02:00
librpc s3:librpc:crypto:gse: increase debug level for gse_init_client(). 2016-04-28 16:51:16 +02:00
libsmb libsmb:namequery: fix typo in comment in get_dc_list() 2016-07-12 17:49:19 +02:00
locale s3: fix encryption help messages 2015-12-22 02:22:50 +01:00
locking smbd: Convert locking.tdb to new dbwrap_watch 2016-07-15 16:56:13 +02:00
modules AddressSanitizer: Initialize for vfs_fruit.c 2016-07-25 13:56:11 +02:00
nmbd dlist: remove unneeded type argument from DLIST_ADD_END() 2016-02-06 21:48:17 +01:00
param docs-xml:smbdotconf: default "ntlm auth" to "no" 2016-07-22 16:03:26 +02:00
passdb s3:pdb_samba_dsdb: fix calucating of dsdb_flags 2016-06-27 05:00:16 +02:00
printing printing: handle "printcap cache time" change on HUP 2016-04-19 13:14:20 +02:00
profile s3-profile: reduce dependencies of smbprofile.h 2016-03-28 20:45:16 +02:00
registry s3:registry: use dbwrap_purge_bystring instead of dbwrap_delete_bystring 2016-03-01 21:50:24 +01:00
rpc_client s3:rpc_client: remove unused rpc_pipe_client->max_recv_frag 2016-06-24 14:09:01 +02:00
rpc_server rpc_server: add mssing '#pragma GCC diagnostic push' 2016-07-14 02:02:33 +02:00
rpcclient s3:rpcclient: make use of SMB_SIGNING_IPC_DEFAULT 2016-05-21 05:01:15 +02:00
script s3:tests: add 'as user' to the test names in test_smbclient_auth.sh 2016-07-22 16:03:25 +02:00
selftest s3:selftest: run smbclient_auth with a few more combinations 2016-07-22 16:03:25 +02:00
services Convert all uint32/16/8 to _t in a couple of include files. 2015-05-12 04:22:55 +02:00
smbd s3/cleanupd: use smbd_cleanupd.tdb 2016-07-28 05:00:18 +02:00
torture s3: torture: Regression test case to specify exactly how UNIX extensions should act on files with streams. 2016-07-20 05:20:29 +02:00
utils s3:ntlm_auth: call fault_setup() in order to get usefull backtraces 2016-07-22 16:03:25 +02:00
web
winbindd s4: messaging: Remove bool auto_remove parameter from imessaging_init(). 2016-07-23 06:04:11 +02:00
.clang_complete lib: Remove tdb_compat 2015-03-17 11:30:52 +01:00
.dmallocrc
.indent.pro
change-log
Doxyfile
mainpage.dox
smbadduser.in
wscript s3: wscript: Add checks for open file description locks. 2016-05-21 01:28:28 +02:00
wscript_build s3/lib: add smbd_cleanupd.tdb 2016-07-28 05:00:18 +02:00
wscript_configure_system_ncurses Transition to waf 1.8: wrapped conf.check_cfg 2015-03-16 03:00:07 +01:00