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.

classification
Title: warnings with subprocess and pipe2
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 3.2, Python 3.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: rosslagerwall Nosy List: georg.brandl, gregory.p.smith, pitrou, python-dev, rosslagerwall
Priority: normal Keywords:

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:11adminsetgithub: 55215
2011-12-22 07:45:19rosslagerwallsetstatus: open -> closed

assignee: rosslagerwall
versions: + Python 3.3
nosy: + rosslagerwall

messages: + msg150077
resolution: fixed
stage: resolved
2011-12-22 07:21:09python-devsetnosy: + python-dev
messages: + msg150074
2011-01-25 14:30:50pitrousetnosy: georg.brandl, gregory.p.smith, pitrou
messages: + msg127012
2011-01-25 14:30:08pitroucreate