1 |
Author: zmedico |
2 |
Date: 2008-10-09 20:03:37 +0000 (Thu, 09 Oct 2008) |
3 |
New Revision: 11666 |
4 |
|
5 |
Modified: |
6 |
main/trunk/pym/_emerge/__init__.py |
7 |
Log: |
8 |
Remove redundant os.close(master_fd) call inside SpawnProcess._start() since |
9 |
that file discriptor is referenced by a file object which already has an |
10 |
appropriate close() call. This fixes an 'IOError: [Errno 9] Bad file |
11 |
descriptor' exception which was raised when attempting to close the file |
12 |
object. |
13 |
|
14 |
|
15 |
Modified: main/trunk/pym/_emerge/__init__.py |
16 |
=================================================================== |
17 |
--- main/trunk/pym/_emerge/__init__.py 2008-10-09 19:46:07 UTC (rev 11665) |
18 |
+++ main/trunk/pym/_emerge/__init__.py 2008-10-09 20:03:37 UTC (rev 11666) |
19 |
@@ -2142,7 +2142,6 @@ |
20 |
|
21 |
if isinstance(retval, int): |
22 |
# spawn failed |
23 |
- os.close(master_fd) |
24 |
for f in files.values(): |
25 |
f.close() |
26 |
self.returncode = retval |