summaryrefslogtreecommitdiffstats
path: root/ctdb/server/eventscript.c
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2013-07-22 15:06:52 +1000
committerMartin Schwenke <martin@meltin.net>2013-07-23 11:28:07 +1000
commit6cbcc4a8d9d4569cb5d3143638ceb033e61f0fb9 (patch)
treef488820394831b659ad2bb88cce6995c1c892c73 /ctdb/server/eventscript.c
parent6882625cfea795b6d5a5aaeef4bdec51a25baa65 (diff)
downloadsamba-6cbcc4a8d9d4569cb5d3143638ceb033e61f0fb9.tar.gz
samba-6cbcc4a8d9d4569cb5d3143638ceb033e61f0fb9.tar.xz
samba-6cbcc4a8d9d4569cb5d3143638ceb033e61f0fb9.zip
ctdbd: Pass event name to hung script debugger
Signed-off-by: Martin Schwenke <martin@meltin.net> Pair-programmed-with: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit e0f3fa1020e13b84bdd672538168d148f1847d57)
Diffstat (limited to 'ctdb/server/eventscript.c')
-rw-r--r--ctdb/server/eventscript.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ctdb/server/eventscript.c b/ctdb/server/eventscript.c
index 10d426fba7..c255e176c7 100644
--- a/ctdb/server/eventscript.c
+++ b/ctdb/server/eventscript.c
@@ -548,8 +548,9 @@ static void ctdb_run_debug_hung_script(struct ctdb_context *ctdb, struct ctdb_ev
debug_hung_script = getenv("CTDB_DEBUG_HUNG_SCRIPT");
}
- buf = talloc_asprintf(NULL, "%s %d",
- debug_hung_script, state->child);
+ buf = talloc_asprintf(NULL, "%s %d %s",
+ debug_hung_script, state->child,
+ ctdb_eventscript_call_names[state->call]);
system(buf);
talloc_free(buf);