Issue 11006: warnings with subprocess and pipe2 (original) (raw)

Issue11006

Created on 2011-01-25 14:30 by pitrou, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (4)
msg127011 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2011-01-25 14:30
Since r87651, subprocess can raise a RuntimeWarning if pipe2() fails. I'm not sure there's any point in that, since it's very low-level and it's nothing the user can do about anyway. Ironically, there is no warning if pipe2() is not available at all.
msg127012 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2011-01-25 14:30
This can be seen on the sparc Debian buildbot by the way: /home/pybot/buildarea-sid/3.x.klose-debian-sparc/build/Lib/subprocess.py:1085: RuntimeWarning: pipe2 set errno ENOSYS; falling back to non-atomic pipe+fcntl. c2pread, c2pwrite = _create_pipe() /home/pybot/buildarea-sid/3.x.klose-debian-sparc/build/Lib/subprocess.py:1144: RuntimeWarning: pipe2 set errno ENOSYS; falling back to non-atomic pipe+fcntl. errpipe_read, errpipe_write = _create_pipe() [etc.] http://www.python.org/dev/buildbot/all/builders/sparc%20Debian%203.x/builds/1/steps/test/logs/stdio
msg150074 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2011-12-22 07:21
New changeset dc913f73a7fb by Ross Lagerwall in branch '3.2': Issue #11006: Don't issue low level warning in subprocess when pipe2() fails. http://hg.python.org/cpython/rev/dc913f73a7fb New changeset b1b35583967a by Ross Lagerwall in branch 'default': Merge with 3.2 for #11006. http://hg.python.org/cpython/rev/b1b35583967a
msg150077 - (view) Author: Ross Lagerwall (rosslagerwall) (Python committer) Date: 2011-12-22 07:45
Removed the warnings. Thanks.
History
Date User Action Args
2022-04-11 14:57:11 admin set github: 55215
2011-12-22 07:45:19 rosslagerwall set status: open -> closedassignee: rosslagerwallversions: + Python 3.3nosy: + rosslagerwallmessages: + resolution: fixedstage: resolved
2011-12-22 07:21:09 python-dev set nosy: + python-devmessages: +
2011-01-25 14:30:50 pitrou set nosy:georg.brandl, gregory.p.smith, pitroumessages: +
2011-01-25 14:30:08 pitrou create