ctdb-test: Modify ctdb_io_test test_setup to provide queue reference
[vlendec/samba-autobuild/.git] / ctdb / config / debug-hung-script.sh
index 2e3792c71109ea918bb811c2fb29ef84ccbe87ad..03d5ea2f6a0d202ed63e10f81c4280dd8152c94a 100755 (executable)
@@ -8,7 +8,7 @@
 
 . "${CTDB_BASE}/functions"
 
-loadconfig ctdb
+load_script_options
 
 # Testing hook
 if [ -n "$CTDB_DEBUG_HUNG_SCRIPT_LOGFILE" ] ; then
@@ -36,7 +36,7 @@ fi
     default_pat='exportfs|rpcinfo'
     pat="${CTDB_DEBUG_HUNG_SCRIPT_STACKPAT:-${default_pat}}"
     echo "$out" |
-    sed -r -n "s@.*-(.*(${pat}).*),([0-9]*).*@\\1@p" |
+    sed -r -n "s@.*-(.*(${pat}).*),([0-9]*).*@\\3 \\1@p" |
     while read pid name ; do
        trace=$(cat "/proc/${pid}/stack" 2>/dev/null)
        # No! Checking the exit code afterwards is actually clearer...