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

fix: Disown PID before sending SIGTERM

parent 118d9a56
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -46,7 +46,7 @@ finish() {
          143 ) display="SIGTERM" ;;
        esac
        echo && error "Forcefully terminating $(app), reason: $display..."
        { kill -9 -- "$pid" || :; } 2>/dev/null
        { disown "$pid" || :; kill -9 -- "$pid" || :; } 2>/dev/null
      fi
    fi
  fi