On Fri, Sep 02, 2011 at 02:04:34PM +0300, Andriy Gapon wrote: > on 02/09/2011 13:40 Jilles Tjoelker said the following: > > Ports people have complained about poll() behaviour before, are there > > configure scripts that attempt to check if we ever return POLLHUP alone > > and only check for POLLIN if not? > > Not sure about that other software and how POLLIN is related here. > The software in question (mozilla nspr) checks for POLLNVAL, POLLERR, POLLPRI > and POLLOUT to determine if anything interesting has happened to a connection > supposed to be in progress. They aren't checking for POLLHUP at all and thus > they keep thinking that the connection is still in progress when they get it.
It seems for such case it should return POLLERR too. -- http://ache.vniz.net/ _______________________________________________ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"