Unverified Commit bf592471 authored by Kroese's avatar Kroese Committed by GitHub
Browse files
parent 6ad42513
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -218,7 +218,11 @@ def _is_process_alive(pid: int) -> bool:
    try:
        os.kill(pid, 0)
        return True
    except (ProcessLookupError, OSError):
    except ProcessLookupError:
        return False
    except PermissionError:
        return True
    except OSError:
        return False