ctdb-cluster-mutex: Reset SIGTERM handler in cluster mutex child
authorMartin Schwenke <martin@meltin.net>
Wed, 12 Sep 2018 04:18:00 +0000 (14:18 +1000)
committerMartin Schwenke <martins@samba.org>
Mon, 17 Sep 2018 20:58:19 +0000 (22:58 +0200)
commit5a6b139884f08ee2ee10f9d16fe56ad8fb5352a6
treecb94b92b103bbd1794c7a4786981b08eb9311490
parent0cb341321fcdd2d6d7281d591ebcaa540da48134
ctdb-cluster-mutex: Reset SIGTERM handler in cluster mutex child

If SIGTERM is received and the tevent signal handler setup in the
recovery daemon is still enabled then the signal is handled and a
corresponding event is queued.  The child never runs an event loop so
the signal is effectively ignored.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13617

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/server/ctdb_cluster_mutex.c