ctdb-common: Separate sock_daemon's SIGHUP and SIGUSR1 handling
commitd0a19778cdbd04f8b6fca43199d7b12e1d4933b7
authorMartin Schwenke <martin@meltin.net>
Thu, 18 Nov 2021 10:17:39 +0000 (18 21:17 +1100)
committerAmitay Isaacs <amitay@samba.org>
Mon, 17 Jan 2022 03:43:30 +0000 (17 03:43 +0000)
tree5946267a04d4269bcce6b8edae68758850c4f6fa
parent10d15c9e5dfe4e8595d0b322c96f474fc7078f46
ctdb-common: Separate sock_daemon's SIGHUP and SIGUSR1 handling

SIGHUP is for reopening logs, SIGUSR1 is for reconfigure.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/common/sock_daemon.c
ctdb/common/sock_daemon.h
ctdb/tests/UNIT/cunit/sock_daemon_test_001.sh
ctdb/tests/src/sock_daemon_test.c