On FreeBSD when asked for POLLOUT the poll() syscall returns only POLLHUP to signify the fact that the other side closed the connection. It never sends POLLERR for EOF cases, which results in a busy-loop inside the Glib dispatcher: - poll() returns immediately with POLLHUP for a closed socket - socketNotifierSourceCheck() does not detect it, because .events = POLLOUT | POLLERR and we get .revents = POLLHUP. The (events & revents != 0) condition evaluates to false - the code decides there is nothing to do and a new iteration starts A similar issue in dbus code: https://gitlab.freedesktop.org/dbus/dbus/-/merge_requests/526 Change-Id: I2660a5179031da8eb9fe2562abe7fb283c77f64a Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
…
…
Description
Languages
C++
84.3%
HTML
4.9%
C
3.9%
CMake
3.6%
Objective-C++
2%
Other
0.8%