diff options
Diffstat (limited to 'testsuite/lib/systemtap.exp')
-rw-r--r-- | testsuite/lib/systemtap.exp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/lib/systemtap.exp b/testsuite/lib/systemtap.exp index d458e98f..4586ee20 100644 --- a/testsuite/lib/systemtap.exp +++ b/testsuite/lib/systemtap.exp @@ -128,3 +128,8 @@ proc as_root { command } { verbose -log "RC $res" return $res } + +proc closewait { args } { + catch { if {"$args" == "" } then { close -slave } else { eval "close $args" } } + catch { wait } +} |