Commit 6e9be69f authored by Christopher Covington's avatar Christopher Covington Committed by Pavel Emelyanov

zdtm: Replace `ps -p` with `kill -0`

The -p argument to `ps` is not supported by Busybox v1.19.4. Sending
signal 0 with the `kill` command is an alternative way to check
whether a process is still running.

http://www.linuxjournal.com/content/monitoring-processes-kill-0Signed-off-by: 's avatarChristopher Covington <cov@codeaurora.org>
Acked-by: 's avatarAndrew Vagin <avagin@parallels.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 29a688bb
......@@ -420,7 +420,7 @@ start_test()
[ -z "$PIDNS" ] || cd -
PID=`cat "$TPID"` || return 1
if ! ps -p $PID ; then
if ! kill -0 $PID ; then
echo "Test failed to start"
return 1
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment