From: Zac Medico Date: Wed, 3 Jan 2007 22:30:58 +0000 (-0000) Subject: Make sure stderr is flushed since os._exit doesn't flush stdio buffers. X-Git-Tag: v2.1.2~166 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=dc83f3e33f7526c1da92bf52f65c1d2456b2304d;p=portage.git Make sure stderr is flushed since os._exit doesn't flush stdio buffers. svn path=/main/trunk/; revision=5454 --- diff --git a/pym/getbinpkg.py b/pym/getbinpkg.py index ef609979a..729525c04 100644 --- a/pym/getbinpkg.py +++ b/pym/getbinpkg.py @@ -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: