add check_pid, and handle stale PID info in ipcluster. #429

Merged
merged 1 commit into from May 16, 2011

Projects

None yet

1 participant

@minrk
Member
minrk commented May 11, 2011

c.f. #428

ipcluster now actually tries to check if a program with a PID is running, better handling stale (or bogus) PID files.

Checks are via kernel32.OpenProcess on Windows and ps x on everything else. If the operation fails, then the process is assumed to exist, effectively falling back on prior behavior.

@minrk minrk add check_pid, and handle stale PID info in ipcluster.
    
ipcluster now actually tries to check if a program with a PID is running, better handling stale (or fake) PID files.
    
Checks are via `kernel32.OpenProcess` on Windows and `ps x` on everything else.  If the operation fails, then the process is assumed to exist, effectively falling back on prior behavior.

closes gh-428
bf35b32
@minrk minrk merged commit 050a532 into ipython:master May 16, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment