mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-01 23:05:39 +00:00
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-0 Signed-off-by: Christopher Covington <cov@codeaurora.org> Acked-by: Andrew Vagin <avagin@parallels.com> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
29a688bb80
commit
6e9be69f76
@@ -420,7 +420,7 @@ start_test()
|
|||||||
[ -z "$PIDNS" ] || cd -
|
[ -z "$PIDNS" ] || cd -
|
||||||
|
|
||||||
PID=`cat "$TPID"` || return 1
|
PID=`cat "$TPID"` || return 1
|
||||||
if ! ps -p $PID ; then
|
if ! kill -0 $PID ; then
|
||||||
echo "Test failed to start"
|
echo "Test failed to start"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user