fix: Fallback to tail if pidwait is not available
fix: Fallback to tail if pidwait is not available
This commit is contained in:
commit
79d9666e7d
1 changed files with 3 additions and 3 deletions
|
@ -81,8 +81,8 @@ set -m
|
|||
)
|
||||
set +m
|
||||
|
||||
if (( KERNEL > 5 )) || ( (( KERNEL == 5 )) && (( MINOR > 10 )) ); then
|
||||
if (( KERNEL > 5 )) || ( (( KERNEL == 5 )) && (( MINOR > 2 )) ); then
|
||||
pidwait -F "${_QEMU_PID}" & wait $!
|
||||
else
|
||||
tail --pid "$(cat "${_QEMU_PID}")" --follow /dev/null & wait $!
|
||||
fi
|
||||
|
||||
tail --pid "$(cat "${_QEMU_PID}")" --follow /dev/null & wait $!
|
||||
|
|
Loading…
Reference in a new issue