Use os._exit instead of sys.exit in a forked child process.
authorZac Medico <zmedico@gentoo.org>
Wed, 3 Jan 2007 22:25:55 +0000 (22:25 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 3 Jan 2007 22:25:55 +0000 (22:25 -0000)
svn path=/main/trunk/; revision=5453

pym/getbinpkg.py

index bb9c12e45b983c8313be152a979e39b804954281..ef609979af194b041cf8e6493e3178a3a08e8c9b 100644 (file)
@@ -374,7 +374,7 @@ def file_get(baseurl,dest,conn=None,fcmd=None):
                except OSError:
                        pass
                sys.stderr.write("!!! Failed to spawn fetcher.\n")
-               sys.exit(1)
+               os._exit(1)
        retval=os.waitpid(mypid,0)[1]
        if (retval & 0xff) == 0:
                retval = retval >> 8