|
@@ -68,8 +68,9 @@ def process_is_dead(process):
|
|
|
|
|
|
# Try to see if the process is actually running,
|
|
|
# and reap zombie proceses while we're at it.
|
|
|
- # Only do this if os.kill exists. It doesn't on windows.
|
|
|
-
|
|
|
+
|
|
|
+ # Only do this if os.kill exists for this platform (e.g. Windows doesn't
|
|
|
+ # support it).
|
|
|
if callable(getattr(os, "kill", None)) and reap_process(process.pid):
|
|
|
return True
|
|
|
|