Kaydet (Commit) cfecd599 authored tarafından Georg Brandl's avatar Georg Brandl

Guard the _active.remove() call to avoid errors when there is no _active list.

üst a85bf202
......@@ -72,6 +72,7 @@ class Popen3:
# In case the child hasn't been waited on, check if it's done.
self.poll(_deadstate=sys.maxint)
if self.sts < 0:
if _active:
# Child is still running, keep us alive until we can wait on it.
_active.append(self)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment