[issue9591] kqueue not reporting EOF under certain circumstances

Terry J. Reedy report at bugs.python.org
Fri Aug 20 19:14:38 CEST 2010


Terry J. Reedy <tjreedy at udel.edu> added the comment:

I presume the first example should have been 
# cat file | ./test.py
or seceond should have been
# ./test.py < test.py
so that test.py gets same input on stdin in either case.

For other readers: kqueue and kevent are bsd-specific functions and classes in the select module. In the first output, 32786 (== 1 << 15) is the EOF flag missing in the second output.

I wonder is this is really a python issue. I would expect that kqueue and kevent are thin wrappers for the os calls and objects and that python should be indifferent to the source of stdin data. You could check the C source. I do not know if there are any developers currently familiar with the innards of bsd.

----------
nosy: +terry.reedy

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9591>
_______________________________________


More information about the Python-bugs-list mailing list