Editing POLLHUP polling
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 124: | Line 124: | ||
* POLLIN if checking | * POLLIN if checking | ||
* POLLHUP always | * POLLHUP always | ||
This is regardless of whether there is data in the socket to read. | This is regardless of whether there is data in the socket to read. | ||
Line 134: | Line 134: | ||
The history of FreeBSD's behaviour is as follows: | The history of FreeBSD's behaviour is as follows: | ||
* 1997: [https://svnweb.freebsd.org/base?view=revision&revision=29351 FreeBSD | * 1997: [https://svnweb.freebsd.org/base?view=revision&revision=29351 FreeBSD implements poll] based on NetBSD's code. POLLHUP is not returned by sockets | ||
* 2009: [https://svnweb.freebsd.org/base?view=revision&revision=195423 FreeBSD | * 2009: [https://svnweb.freebsd.org/base?view=revision&revision=195423 FreeBSD adds POLLHUP for sockets] | ||
* 2009: | * 2009: f2159cc7908d0 | ||
* 2009: | * 2009: 74d1c4927a3b7ce785e41e97e33a804f4f8c62ce | ||
* 2018: ad7eb8cad5320 | |||
== OpenBSD == | == OpenBSD == | ||
Line 143: | Line 144: | ||
* POLLIN if checking | * POLLIN if checking | ||
* POLLHUP always | * POLLHUP always | ||
This is regardless of whether there is data in the socket to read. | This is regardless of whether there is data in the socket to read. |