Skip to content

Commit

Permalink
Debug devpi.
Browse files Browse the repository at this point in the history
  • Loading branch information
jsirois committed Feb 9, 2025
1 parent 1c9dab1 commit 111357c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pex/os.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def kill(pid):
_OP = op

phandle = _OP(_PROCESS_TERMINATE, False, pid)
if phandle is None:
if not phandle:
# TODO(John Sirois): Review literature / experiment and don't raise if this just means
# the process is already dead.
# See: https://github.com/pex-tool/pex/issues/2670
Expand Down Expand Up @@ -177,7 +177,7 @@ def kill(pid):
import signal

try:
os.kill(pid, signal.SIGKILL)
os.kill(pid, signal.SIGKILL) # type: ignore[attr-defined]
except OSError as e:
if e.errno != errno.ESRCH: # No such process.
raise

0 comments on commit 111357c

Please sign in to comment.