diff options
Diffstat (limited to 'Lib/subprocess.py')
-rw-r--r-- | Lib/subprocess.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/subprocess.py b/Lib/subprocess.py index 6b91f69..6d46529 100644 --- a/Lib/subprocess.py +++ b/Lib/subprocess.py @@ -1066,10 +1066,10 @@ class Popen(object): gc.disable() try: self.pid = os.fork() - except: + finally: if gc_was_enabled: gc.enable() - raise + self._child_created = True if self.pid == 0: # Child |