diff options
author | Guido van Rossum <guido@python.org> | 2014-05-12 09:55:06 -0700 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2014-05-12 09:55:06 -0700 |
commit | f3aca4c07fc1a0fb22d6e58ea0af0eeb8b21e2fe (patch) | |
tree | 21671c6e9204e321b32621ebec1f74af7f7bc362 /examples | |
parent | 183a5bb736bbfa04c20fc6dd5a91b014d7c8bd59 (diff) | |
download | trollius-f3aca4c07fc1a0fb22d6e58ea0af0eeb8b21e2fe.tar.gz |
Fix issue 168: StreamReader.read(-1) from pipe may hang if data exceeds buffer limit.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/subprocess_attach_read_pipe.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/subprocess_attach_read_pipe.py b/examples/subprocess_attach_read_pipe.py index 57a1342..a692781 100644 --- a/examples/subprocess_attach_read_pipe.py +++ b/examples/subprocess_attach_read_pipe.py @@ -6,7 +6,7 @@ import os, sys code = """ import os, sys fd = int(sys.argv[1]) -data = os.write(fd, b'data') +os.write(fd, b'data') os.close(fd) """ |