summaryrefslogtreecommitdiff
path: root/devel/dbus/files/patch-dbus_dbus-transport-socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'devel/dbus/files/patch-dbus_dbus-transport-socket.c')
-rw-r--r--devel/dbus/files/patch-dbus_dbus-transport-socket.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/devel/dbus/files/patch-dbus_dbus-transport-socket.c b/devel/dbus/files/patch-dbus_dbus-transport-socket.c
new file mode 100644
index 000000000000..15a5d2eedcd0
--- /dev/null
+++ b/devel/dbus/files/patch-dbus_dbus-transport-socket.c
@@ -0,0 +1,15 @@
+https://gitlab.freedesktop.org/dbus/dbus/-/merge_requests/526
+
+--- dbus/dbus-transport-socket.c.orig 2025-02-27 16:29:06 UTC
++++ dbus/dbus-transport-socket.c
+@@ -1208,8 +1208,8 @@ socket_do_iteration (DBusTransport *transport,
+ do_io_error (transport);
+ else
+ {
+- dbus_bool_t need_read = (poll_fd.revents & _DBUS_POLLIN) > 0;
+- dbus_bool_t need_write = (poll_fd.revents & _DBUS_POLLOUT) > 0;
++ dbus_bool_t need_read = (poll_fd.revents & (_DBUS_POLLIN | _DBUS_POLLHUP)) > 0;
++ dbus_bool_t need_write = (poll_fd.revents & (_DBUS_POLLOUT | _DBUS_POLLHUP)) > 0;
+ dbus_bool_t authentication_completed;
+
+ _dbus_verbose ("in iteration, need_read=%d need_write=%d\n",