Unverified Commit 7790f81d authored by Kroese's avatar Kroese Committed by GitHub
Browse files

fix: Trap exit code (#592)

parent fdbff487
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -98,7 +98,6 @@ terminal() {

_graceful_shutdown() {

  local cnt=0
  local code=$?
  local pid url response

@@ -144,6 +143,8 @@ _graceful_shutdown() {

  fi

  local cnt=0

  while [ "$cnt" -lt "$QEMU_TIMEOUT" ]; do

    ! isAlive "$pid" && break