From: Zac Medico Date: Thu, 9 Oct 2008 20:03:37 +0000 (-0000) Subject: Remove redundant os.close(master_fd) call inside SpawnProcess._start() since X-Git-Tag: v2.2_rc12~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a946999a8ed558ed50d5a37a3b4eee9ccc40961a;p=portage.git Remove redundant os.close(master_fd) call inside SpawnProcess._start() since that file discriptor is referenced by a file object which already has an appropriate close() call. This fixes an 'IOError: [Errno 9] Bad file descriptor' exception which was raised when attempting to close the file object. svn path=/main/trunk/; revision=11666 --- diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 65093ddd8..7b4067a88 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -2142,7 +2142,6 @@ class SpawnProcess(SubProcess): if isinstance(retval, int): # spawn failed - os.close(master_fd) for f in files.values(): f.close() self.returncode = retval