Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

warnings with subprocess and pipe2 #55215

Closed
pitrou opened this issue Jan 25, 2011 · 4 comments
Closed

warnings with subprocess and pipe2 #55215

pitrou opened this issue Jan 25, 2011 · 4 comments
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@pitrou
Copy link
Member

pitrou commented Jan 25, 2011

BPO 11006
Nosy @birkenfeld, @gpshead, @pitrou

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2011-12-22.07:45:19.536>
created_at = <Date 2011-01-25.14:30:08.932>
labels = ['type-bug', 'library']
title = 'warnings with subprocess and pipe2'
updated_at = <Date 2011-12-22.07:45:19.534>
user = 'https://github.com/pitrou'

bugs.python.org fields:

activity = <Date 2011-12-22.07:45:19.534>
actor = 'rosslagerwall'
assignee = 'rosslagerwall'
closed = True
closed_date = <Date 2011-12-22.07:45:19.536>
closer = 'rosslagerwall'
components = ['Library (Lib)']
creation = <Date 2011-01-25.14:30:08.932>
creator = 'pitrou'
dependencies = []
files = []
hgrepos = []
issue_num = 11006
keywords = []
message_count = 4.0
messages = ['127011', '127012', '150074', '150077']
nosy_count = 5.0
nosy_names = ['georg.brandl', 'gregory.p.smith', 'pitrou', 'rosslagerwall', 'python-dev']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue11006'
versions = ['Python 3.2', 'Python 3.3']

@pitrou
Copy link
Member Author

pitrou commented Jan 25, 2011

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.

@pitrou pitrou added stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error labels Jan 25, 2011
@pitrou
Copy link
Member Author

pitrou commented Jan 25, 2011

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

@python-dev
Copy link
Mannequin

python-dev mannequin commented Dec 22, 2011

New changeset dc913f73a7fb by Ross Lagerwall in branch '3.2':
Issue bpo-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 bpo-11006.
http://hg.python.org/cpython/rev/b1b35583967a

@rosslagerwall
Copy link
Mannequin

rosslagerwall mannequin commented Dec 22, 2011

Removed the warnings.

Thanks.

@rosslagerwall rosslagerwall mannequin closed this as completed Dec 22, 2011
@rosslagerwall rosslagerwall mannequin self-assigned this Dec 22, 2011
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant