MCPcopy Create free account
hub / github.com/ipython/ipython / check_pid

Function check_pid

IPython/utils/_process_win32.py:202–205  ·  view source on GitHub ↗
(pid)

Source from the content-addressed store, hash-verified

200 arg_split = py_arg_split
201
202def check_pid(pid):
203 # OpenProcess returns 0 if no such process (of ours) exists
204 # positive int otherwise
205 return bool(ctypes.windll.kernel32.OpenProcess(1,0,pid))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected