Mercurial > cpython-lru_cache-weakref
diff Lib/multiprocessing/process.py @ 55385:fda9062ebfa4 2.6
Merged revisions 73708,73738 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r73708 | jesse.noller | 2009-06-30 13:11:52 -0400 (Tue, 30 Jun 2009) | 1 line
Resolves issues 5155, 5313, 5331 - bad file descriptor error with processes in processes
........
r73738 | r.david.murray | 2009-06-30 22:49:10 -0400 (Tue, 30 Jun 2009) | 2 lines
Make punctuation prettier and break up run-on sentence.
........
| author | R. David Murray <rdmurray@bitdance.com> |
|---|---|
| date | Tue, 21 Jul 2009 17:02:14 +0000 |
| parents | 7ea805d879e1 |
| children | 427c2143e2c9 |
line wrap: on
line diff
--- a/Lib/multiprocessing/process.py Tue Jul 21 14:37:38 2009 +0000 +++ b/Lib/multiprocessing/process.py Tue Jul 21 17:02:14 2009 +0000 @@ -220,7 +220,8 @@ self._children = set() self._counter = itertools.count(1) try: - os.close(sys.stdin.fileno()) + sys.stdin.close() + sys.stdin = open(os.devnull) except (OSError, ValueError): pass _current_process = self
