mirror of
https://github.com/AlbrechtL/openwrt-docker.git
synced 2026-10-15 00:01:23 +00:00
Use tail instead of sleep
This commit is contained in:
+2
-4
@@ -43,7 +43,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
|
||||
|
||||
Reference in New Issue
Block a user