1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/ctdb/common
Amitay Isaacs ed722c3aa9 ctdb-common: Add wait_send/wait_recv to sock_daemon_funcs
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12510

To be able to terminate the daemon from within the implementation,
create a subreq using wait_send() provided by the implementation.
When the subreq is finished, it signals the sock_daemon code to terminate
the daemon.

This avoids the need to keep track of the top level tevent_req causing
layer violation and keeps the code flow straighforward.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Stefan Metzmacher <metze@samba.org>

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Mon Jan 16 21:16:51 CET 2017 on sn-devel-144
2017-01-16 21:16:51 +01:00
..
comm.c ctdb-tests: Re-use set_blocking instead of re-definition 2016-06-08 10:33:19 +02:00
comm.h ctdb-common: Add communication endpoint abstraction 2015-10-07 14:53:29 +02:00
common.h ctdb-daemon: Move function typedef to where it's used 2016-12-16 08:42:32 +01:00
ctdb_io.c ctdb-common: Drop CTDB's copy of sys_read() and sys_write() 2016-11-29 11:22:40 +01:00
ctdb_ltdb.c ctdb-common: Simplify code using tdb_storev 2016-10-27 23:53:12 +02:00
ctdb_util.c ctdb-common: Use correct db_id size in marshalling record buffer 2016-09-14 08:39:28 +02:00
db_hash.c ctdb-common: Add db_hash abstraction 2015-10-07 14:53:28 +02:00
db_hash.h ctdb-common: Add db_hash abstraction 2015-10-07 14:53:28 +02:00
logging.c ctdb-logging: Refactor logging code 2016-12-05 08:09:22 +01:00
logging.h ctdb-logging: Refactor logging code 2016-12-05 08:09:22 +01:00
pidfile.c ctdb-common: Add routines to manage PID file 2016-09-22 08:34:20 +02:00
pidfile.h ctdb-common: Add routines to manage PID file 2016-09-22 08:34:20 +02:00
pkt_read.c ctdb-common: Add packet read abstraction 2015-10-07 14:53:28 +02:00
pkt_read.h ctdb-common: Add packet read abstraction 2015-10-07 14:53:28 +02:00
pkt_write.c ctdb-common: Add packet write abstraction 2015-10-07 14:53:28 +02:00
pkt_write.h ctdb-common: Add packet write abstraction 2015-10-07 14:53:28 +02:00
rb_tree.c ctdb-common: Fix CID 1125585 Dereference after null check (FORWARD_NULL) 2016-08-08 08:17:34 +02:00
rb_tree.h Added some #ifndefs to stop files being included multiple times. 2011-11-11 14:31:50 +11:00
reqid.c ctdb-common: Add request id abstraction 2015-10-07 14:53:28 +02:00
reqid.h ctdb-common: Add request id abstraction 2015-10-07 14:53:28 +02:00
run_proc.c ctdb-common: Add run_proc abstraction 2016-12-18 14:23:22 +01:00
run_proc.h ctdb-common: Add run_proc abstraction 2016-12-18 14:23:22 +01:00
sock_daemon.c ctdb-common: Add wait_send/wait_recv to sock_daemon_funcs 2017-01-16 21:16:51 +01:00
sock_daemon.h ctdb-common: Add wait_send/wait_recv to sock_daemon_funcs 2017-01-16 21:16:51 +01:00
sock_io.c ctdb-common: Fix a bug in packet reading code for generic socket I/O 2017-01-06 08:37:28 +01:00
sock_io.h ctdb-common: Add generic socket I/O 2016-12-18 14:23:22 +01:00
srvid.c ctdb-common: Add srvid abstraction 2015-10-07 14:53:28 +02:00
srvid.h ctdb-common: Add srvid abstraction 2015-10-07 14:53:28 +02:00
system_aix.c ctdb-common: Save errno before closing file to keep debug accurate 2016-08-17 23:00:26 +02:00
system_common.c ctdb-common: Protocol argument must be in host order for socket() call 2016-02-02 08:42:09 +01:00
system_freebsd.c ctdb-common: Save errno before closing file to keep debug accurate 2016-08-17 23:00:26 +02:00
system_gnu.c ctdb-common: Save errno before closing file to keep debug accurate 2016-08-17 23:00:26 +02:00
system_kfreebsd.c ctdb-common: Save errno before closing file to keep debug accurate 2016-08-17 23:00:26 +02:00
system_linux.c ctdb-common: Save errno before closing file to keep debug accurate 2016-08-17 23:00:26 +02:00
system_util.c ctdb-common: Drop CTDB's copy of sys_read() and sys_write() 2016-11-29 11:22:40 +01:00
system.h ctdb-common: Drop CTDB's copy of sys_read() and sys_write() 2016-11-29 11:22:40 +01:00
tunable.c ctdb-takeover: IPAllocAlgorithm replaces LCP2PublicIPs, DeterministicIPs 2016-12-19 04:07:08 +01:00
tunable.h ctdb-common: Refactor tunable related functions 2016-07-25 21:29:46 +02:00