From dc83f3e33f7526c1da92bf52f65c1d2456b2304d Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 3 Jan 2007 22:30:58 +0000 Subject: Make sure stderr is flushed since os._exit doesn't flush stdio buffers. svn path=/main/trunk/; revision=5454 --- pym/getbinpkg.py | 1 + 1 file changed, 1 insertion(+) (limited to 'pym/getbinpkg.py') 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: -- cgit v1.2.3-1-g7c22