summaryrefslogtreecommitdiffstats
path: root/test/supervise.subr
diff options
context:
space:
mode:
Diffstat (limited to 'test/supervise.subr')
-rw-r--r--test/supervise.subr4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/supervise.subr b/test/supervise.subr
index 4a27378..2388b17 100644
--- a/test/supervise.subr
+++ b/test/supervise.subr
@@ -17,7 +17,9 @@ catch_out_err_and_rc()
outbase=$1
shift
{
- eval "$@" 2>&1
+ "$@" 2>&1 &
+ echo $! > ${outbase}.pid
+ wait $(cat ${outbase}.pid)
echo $? > ${outbase}.rc
} | tee ${outbase}.out
}