poll() on a linux box always returns POLLIN

ab ab at spkypc.demon.co.uk
Tue Nov 27 10:59:46 EST 2001


Thanks for this.
Found a change request in he kernel which stated that when a
remote client disconnects, poll keeps returning POLLIN, and 
you need to do what you recommend, checking the return length
from recv !
Never quite as simple as poll returning POLLHUP !

Anthony




More information about the Python-list mailing list