Logo
Explore Help
Sign In
1berry/cpython
1
0
Fork 0
You've already forked cpython
Code Issues Packages Projects Releases Wiki Activity
cpython/Lib/test/subprocessdata/input_reader.py

8 lines
130 B
Python
Raw Permalink Normal View History

issue7213: Open the pipes used by subprocesses with the FD_CLOEXEC flag from the C code, using pipe2() when available. Adds unittests for close_fds and cloexec behaviors.
2010-12-13 07:59:39 +00:00
"""When called as a script, consumes the input"""
import sys
Issue 10687. When --without-pymalloc is given, $VERSION is the same as $LDVERSION, which screws up the sym/hard-links. This avoids those games when $VERSION == $LDVERSION. Also, include a drive-by fix for an obvious syntax error.
2010-12-13 18:04:23 +00:00
if __name__ == "__main__":
issue7213: Open the pipes used by subprocesses with the FD_CLOEXEC flag from the C code, using pipe2() when available. Adds unittests for close_fds and cloexec behaviors.
2010-12-13 07:59:39 +00:00
for line in sys.stdin:
pass
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 5192ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API