Skip to content

Commit

Permalink
echo qemu pid in entrypoint shutdown logic
Browse files Browse the repository at this point in the history
Signed-off-by: David Vossel <[email protected]>
  • Loading branch information
davidvossel committed Feb 8, 2018
1 parent 623ea14 commit d4e0491
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/virt-launcher/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ if [ -n "$qemu_pid" ]; then
# give the pid 10 seconds to exit.
for x in $(seq 1 10); do
if ! [ -d /proc/$qemu_pid ]; then
echo "qemu pid exited after after SIGTERM"
echo "qemu pid [$qemu_pid] exited after after SIGTERM"
exit $rc
fi
echo "waiting for qemu pid to exit"
echo "waiting for qemu pid [$qemu_pid] to exit"
sleep 1
done

# if we got here, the pid never exitted gracefully.
echo "timed out waiting for qemu pid to exit"
echo "timed out waiting for qemu pid [$qemu_pid] to exit"
fi

exit $rc

0 comments on commit d4e0491

Please sign in to comment.