mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-02-24 13:30:02 +08:00
Use tail instead of sleep
This commit is contained in:
parent
b9a3d9119f
commit
240a8e5e1d
@ -57,7 +57,5 @@ set -m
|
||||
)
|
||||
set +m
|
||||
|
||||
while [ -d "/proc/$(cat ${_QEMU_PID})" ]; do
|
||||
sleep infinity &
|
||||
wait $!
|
||||
done
|
||||
# Wait for QEMU process to exit
|
||||
tail --pid="$(cat ${_QEMU_PID})" -f /dev/null
|
||||
|
Loading…
x
Reference in New Issue
Block a user