Make sure stderr is flushed since os._exit doesn't flush stdio buffers.
authorZac Medico <zmedico@gentoo.org>
Wed, 3 Jan 2007 22:30:58 +0000 (22:30 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 3 Jan 2007 22:30:58 +0000 (22:30 -0000)
svn path=/main/trunk/; revision=5454

pym/getbinpkg.py

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