mirror of
https://github.com/python/cpython.git
synced 2025-08-17 07:11:51 +00:00
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. ........
This commit is contained in:
parent
f37b563c72
commit
17438dc26c
5 changed files with 109 additions and 2 deletions
|
@ -220,7 +220,8 @@ class Process(object):
|
|||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue