MCPcopy Create free account
hub / github.com/microsoft/Webwright / _pid_alive

Function _pid_alive

src/webwright/tools/persistent_local_browser.py:69–78  ·  view source on GitHub ↗
(pid: int)

Source from the content-addressed store, hash-verified

67
68
69def _pid_alive(pid: int) -> bool:
70 if pid <= 0:
71 return False
72 try:
73 os.kill(pid, 0)
74 except ProcessLookupError:
75 return False
76 except PermissionError:
77 return True
78 return True
79
80
81def _wait_for_devtools_url(proc: subprocess.Popen, timeout: float) -> str:

Callers 2

_cmd_infoFunction · 0.85
_terminate_pidFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected