From d39fbd60b908013f8723c0167224288547833e95 Mon Sep 17 00:00:00 2001 From: Amitay Isaacs Date: Tue, 25 Sep 2012 17:29:50 +1000 Subject: [PATCH] locking: Do not use ctdb_kill() to kill smbd processes ctdb_kill() is used to terminate processes spawned by CTDB. Signed-off-by: Amitay Isaacs (This used to be ctdb commit 7d025281ee70c91ebcd4d9a908de1045a689786b) --- ctdb/server/ctdb_lock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctdb/server/ctdb_lock.c b/ctdb/server/ctdb_lock.c index fd91c63e890..8097e84b3bb 100644 --- a/ctdb/server/ctdb_lock.c +++ b/ctdb/server/ctdb_lock.c @@ -1058,7 +1058,7 @@ void ctdb_lock_blocked_handler(struct tevent_context *ev, process_name && strstr(process_name, "smbd")) { DEBUG(DEBUG_WARNING, ("Deadlock detected. Killing smbd process (pid=%d)", blocker_pid)); - ctdb_kill(lock_ctx->ctdb, blocker_pid, SIGKILL); + kill(blocker_pid, SIGKILL); } free(process_name);