[issue9591] kqueue not reporting EOF under certain circumstances

2012-07-17 Thread Volodymyr Kostyrko

Volodymyr Kostyrko c.kw...@gmail.com added the comment:

I was wrong. The current behavior is correct. The difference between execution 
is a difference between pipe file object and vnode file object. vnode backed 
file objects doesn't send any signals and care should be taken to detect file 
position.

--
resolution:  - invalid
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9591
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9591] kqueue not reporting EOF under certain circumstances

2010-08-20 Thread Terry J. Reedy

Terry J. Reedy tjre...@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 rep...@bugs.python.org
http://bugs.python.org/issue9591
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9591] kqueue not reporting EOF under certain circumstances

2010-08-20 Thread Volodymyr Kostyrko

Volodymyr Kostyrko c.kw...@gmail.com added the comment:

Ok, I'll try to ask FreeBSD developers, too bad I'm not that familiar with C to 
write example other way than test if it's a system problem.

--
nosy:  -terry.reedy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9591
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com