windows code to detect if a process is still alive
Voelker, Bernhard
bernhard.voelker at siemens-enterprise.com
Thu Apr 14 07:22:22 UTC 2011
Martin Pool wrote:
> For detection of stale lock files, I want to detect whether a given
> process id on the local machine still corresponds to a live process.
> On unix, kill(pid, 0) will do this. What's the best way to do this
> from inside Python on Windows?
I don't know too much about Python, but as (C code) fopen("file", "w") locks
a file for others automatically on Windows, doesn't Python just use
that internally for locking?
Have a nice day,
Berny
More information about the bazaar
mailing list