This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author zmk
Recipients zmk
Date 2011-05-08.16:18:53
SpamBayes Score 1.0119683e-10
Marked as misclassified No
Message-id <1304871541.62.0.951242966353.issue12031@psf.upfronthosting.co.za>
In-reply-to
Content
I want to pass /dev/null as stdin and stderr.

This works from python 2.4 .. 3.2a3

It fails in final 3.2 with 'Bad file descriptor':

Traceback (most recent call last):
  File "test.py", line 11, in <module>
    Popen(['cat', 'file.txt'], stdout = PIPE, stdin = _in, stderr = _err)
  File "/opt/apps/python320/lib/python3.2/subprocess.py", line 736, in __init__
    restore_signals, start_new_session)
  File "/opt/apps/python320/lib/python3.2/subprocess.py", line 1330, in _execute_child
    raise child_exception_type(errno_num, err_msg)
OSError: [Errno 9] Bad file descriptor
History
Date User Action Args
2011-05-08 16:19:01zmksetrecipients: + zmk
2011-05-08 16:19:01zmksetmessageid: <1304871541.62.0.951242966353.issue12031@psf.upfronthosting.co.za>
2011-05-08 16:18:53zmklinkissue12031 messages
2011-05-08 16:18:53zmkcreate