diff options
Diffstat (limited to 'ctdb/server/eventscript.c')
-rw-r--r-- | ctdb/server/eventscript.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ctdb/server/eventscript.c b/ctdb/server/eventscript.c index 762f9506fa..20f16fa156 100644 --- a/ctdb/server/eventscript.c +++ b/ctdb/server/eventscript.c @@ -528,9 +528,7 @@ static void ctdb_run_debug_hung_script(struct ctdb_context *ctdb, struct ctdb_ev cmd, timeval_elapsed(¤t->start), state->child)); talloc_free(cmd); - talloc_free(ctdb->debug_hung_script_ctx); - ctdb->debug_hung_script_ctx = talloc_new(ctdb); - if (!ctdb_fork_with_logging(ctdb->debug_hung_script_ctx, ctdb, "Hung script", NULL, NULL, &pid)) { + if (!ctdb_fork_with_logging(ctdb, ctdb, "Hung script", NULL, NULL, &pid)) { DEBUG(DEBUG_ERR,("Failed to fork a child process with logging to track hung event script\n")); ctdb_kill(state->ctdb, state->child, SIGTERM); return; |