Checks whether a process with the given PID currently exists.
Windows uses ctypes + OpenProcess, deliberately NOT os.kill(pid, 0):
on Windows, os.kill has no “signal 0 = existence check” semantics –
for any signal other than CTRL_C_EVENT/CTRL_BREAK_EVENT it calls
TerminateProcess, which would kill the very Doxygen process this
function is meant to merely check on. POSIX uses the standard
os.kill(pid, 0) idiom instead, which is safe there.
Returns:
True if the process exists (including “exists but access denied”,
Methods
_is_pid_alive
_is_pid_alive(pid: int) -> bool
Checks whether a process with the given PID currently exists.
Windows uses ctypes + OpenProcess, deliberately NOT os.kill(pid, 0):
on Windows, os.kill has no “signal 0 = existence check” semantics –
for any signal other than CTRL_C_EVENT/CTRL_BREAK_EVENT it calls
TerminateProcess, which would kill the very Doxygen process this
function is meant to merely check on. POSIX uses the standard
os.kill(pid, 0) idiom instead, which is safe there.
Returns:
True if the process exists (including “exists but access denied”,
| Parameter | Type | Description |
|---|---|---|
| pid | int | The process ID recorded in a lock file. |
Generated with Flude
Copyright © 2026