summaryrefslogtreecommitdiff
path: root/ctdb/server/ctdb_recover.c
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2016-02-02 14:09:50 +1100
committerAmitay Isaacs <amitay@samba.org>2016-04-28 09:39:16 +0200
commit0b0b954ff23149655640571801e2a3f572ebeadc (patch)
tree86df0eede29e0c6a5b051d5ef7295bb3dd53331f /ctdb/server/ctdb_recover.c
parente679a1731cef260d643e79cd2d6a2aa64ddd1e08 (diff)
downloadsamba-0b0b954ff23149655640571801e2a3f572ebeadc.tar.gz
ctdb-recovery: Kill cluster mutex helper with a signal that can be caught
Unlike fcntl(2), some other helper might need to explicitly take action to release a mutex. This can be done by catching SIGTERM. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb/server/ctdb_recover.c')
-rw-r--r--ctdb/server/ctdb_recover.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ctdb/server/ctdb_recover.c b/ctdb/server/ctdb_recover.c
index da1fc2b9145..8314388930c 100644
--- a/ctdb/server/ctdb_recover.c
+++ b/ctdb/server/ctdb_recover.c
@@ -854,7 +854,7 @@ static int cluster_mutex_destructor(struct ctdb_cluster_mutex_handle *h)
if (h->fd[0] != -1) {
h->fd[0] = -1;
}
- ctdb_kill(h->ctdb, h->child, SIGKILL);
+ ctdb_kill(h->ctdb, h->child, SIGTERM);
return 0;
}