mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2025-12-25 12:50:07 +01:00
2003-06-20 Anders Carlsson <andersca@codefactory.se>
* dbus/dbus-transport-unix.c (unix_handle_watch): Check for hangup and error after checking read so we won't discard pending data if both hangup and read are set.
This commit is contained in:
parent
e94493fc11
commit
ed70a30a72
2 changed files with 12 additions and 6 deletions
|
|
@ -1,3 +1,9 @@
|
|||
2003-06-20 Anders Carlsson <andersca@codefactory.se>
|
||||
|
||||
* dbus/dbus-transport-unix.c (unix_handle_watch): Check
|
||||
for hangup and error after checking read so we won't discard
|
||||
pending data if both hangup and read are set.
|
||||
|
||||
2003-06-19 Philip Blundell <philb@gnu.org>
|
||||
|
||||
* tools/dbus-print-message.c (print_message): Handle BOOLEAN.
|
||||
|
|
|
|||
|
|
@ -727,12 +727,6 @@ unix_handle_watch (DBusTransport *transport,
|
|||
_dbus_assert (watch == unix_transport->read_watch ||
|
||||
watch == unix_transport->write_watch);
|
||||
|
||||
if (flags & (DBUS_WATCH_HANGUP | DBUS_WATCH_ERROR))
|
||||
{
|
||||
_dbus_transport_disconnect (transport);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
if (watch == unix_transport->read_watch &&
|
||||
(flags & DBUS_WATCH_READABLE))
|
||||
{
|
||||
|
|
@ -779,6 +773,12 @@ unix_handle_watch (DBusTransport *transport,
|
|||
}
|
||||
#endif /* DBUS_ENABLE_VERBOSE_MODE */
|
||||
|
||||
if (flags & (DBUS_WATCH_HANGUP | DBUS_WATCH_ERROR))
|
||||
{
|
||||
_dbus_transport_disconnect (transport);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue