diff Lib/test/subprocessdata/input_reader.py @ 66868:de05d846795e

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.
author Gregory P. Smith <greg@mad-scientist.com>
date Mon, 13 Dec 2010 07:59:39 +0000
parents
children 668c4218ae26
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Lib/test/subprocessdata/input_reader.py	Mon Dec 13 07:59:39 2010 +0000
@@ -0,0 +1,7 @@
+"""When called as a script, consumes the input"""
+
+import sys
+
+if __name__ = "__main__":
+    for line in sys.stdin:
+        pass