1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00
samba-mirror/ctdb
Martin Schwenke e40d452722 ctdb-daemon: Close server socket when switching to client
The socket is set close-on-exec but that doesn't help for processes
that do not exec().  This should be done for all child processes.

This has been seen in testing where "ctdb shutdown" waits for the
socket to close before succeeding.  It appears that lingering
vacuuming processes have not closed the socket when becoming clients
so they cause "ctdb shutdown" to hang even though the main daemon
process has exited.  The cause of the lingering vacuuming processes
has been previously examined but still isn't understood.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
2021-06-25 09:16:31 +00:00
..
client ctdb-client: Drop unused synchronous functions for database pull/push 2020-09-11 05:06:42 +00:00
cluster
common ctdb: Fix a crash in run_proc_signal_handler() 2021-05-18 10:42:32 +00:00
config ctdb-scripts: Add lock debugging for tdb mutex locks 2021-05-28 06:46:29 +00:00
database
doc ctdb/doc: mention ctdb_mutex_ceph_rados_helper mgr registration 2020-09-23 23:29:41 +00:00
event ctdb-common: Add section to group commands in cmdline 2019-11-14 10:38:34 +00:00
failover
ib ctdb-daemon: Rename ctdb_context private_data to transport_data 2019-11-14 02:20:46 +00:00
include ctdb-daemon: Drop implementation of old-style database pull/push controls 2020-09-11 06:29:32 +00:00
packaging/RPM ctdb-utils: Add tdb_mutex_check utility 2021-05-28 06:46:29 +00:00
protocol ctdb-daemon: Drop implementation of old-style database pull/push controls 2020-09-11 06:29:32 +00:00
server ctdb-daemon: Close server socket when switching to client 2021-06-25 09:16:31 +00:00
tcp ctdb-tcp: Do not stop outbound connection in ctdb_tcp_node_connect() 2020-03-12 05:29:20 +00:00
tests ctdb-tests: Add debug_locks.sh tests for mutexes 2021-05-28 07:34:23 +00:00
tools ctdb: Use hex_byte() in hex_to_data() 2021-01-08 20:31:33 +00:00
utils ctdb-utils: Add tdb_mutex_check utility 2021-05-28 06:46:29 +00:00
.bzrignore
.gitignore
configure
configure.rpm
COPYING
Makefile
README
wscript ctdb-utils: Add tdb_mutex_check utility 2021-05-28 06:46:29 +00:00

This is the release version of CTDB, a clustered implementation of TDB
database used by Samba and other projects to store temporary data.

This software is freely distributable under the GNU public license,
a copy of which you should have received with this software (in a file
called COPYING).

For documentation on CTDB, please visit CTDB website http://ctdb.samba.org.