Index: Lib/subprocess.py =================================================================== --- Lib/subprocess.py (revision 74006) +++ Lib/subprocess.py (working copy) @@ -1066,10 +1066,10 @@ 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