X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Fscripts%2Fsetsid_wrapper.sh;h=6d63426becc08f6141eb167d9985c734e9e02f64;hb=59f71132edffcfa1b94c400736575bd55bdbd7d7;hp=e18b6ad594734265fe129c2a90d4d78c399049cb;hpb=db4e84cf2f8de0909c3483c8cadb25ac72fb3367;p=vpp.git diff --git a/test/scripts/setsid_wrapper.sh b/test/scripts/setsid_wrapper.sh index e18b6ad5947..6d63426becc 100755 --- a/test/scripts/setsid_wrapper.sh +++ b/test/scripts/setsid_wrapper.sh @@ -3,10 +3,10 @@ if [[ "$1" == "1" ]] then setsid scripts/run_in_venv_with_cleanup.sh $* - pid=$! else setsid scripts/run_in_venv_with_cleanup.sh $* & pid=$! trap "echo setsid_wrapper.sh: got signal, killing child pid ${pid}; kill ${pid}; sleep .1;" SIGINT SIGTERM - wait + wait ${pid} + exit $? fi