diff options
author | Havoc Pennington <hp@redhat.com> | 2007-06-15 19:28:36 +0000 |
---|---|---|
committer | Havoc Pennington <hp@redhat.com> | 2007-06-15 19:28:36 +0000 |
commit | 43b944a0a6ea48e8a8b06ae3e638299f591cde8d (patch) | |
tree | 0b7dc627144289e0a7cbb08546e1aee9fc07cdf3 /dbus/dbus-server-socket.c | |
parent | 283b1c6fc775c15773ebdddd423f79ad1612233d (diff) |
2007-06-15 Havoc Pennington <hp@redhat.com>
* dbus/dbus-sysdeps.c (_dbus_set_errno_to_zero)
(_dbus_get_is_errno_nonzero, _dbus_get_is_errno_eintr)
(_dbus_strerror_from_errno): family of functions to abstract
errno, though these are somewhat bogus (really we should make our
socket wrappers not use errno probably - the issue is that any
usage of errno that isn't socket-related probably is not
cross-platform, so should either be in a unix-only file that can
use errno directly, or is a bug - these general errno wrappers
hide issues of this nature in non-socket code, while
socket-specific API changes would not since sockets are allowed
cross-platform)
Diffstat (limited to 'dbus/dbus-server-socket.c')
-rw-r--r-- | dbus/dbus-server-socket.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dbus/dbus-server-socket.c b/dbus/dbus-server-socket.c index e6fd7d58..3897f0db 100644 --- a/dbus/dbus-server-socket.c +++ b/dbus/dbus-server-socket.c @@ -169,11 +169,11 @@ socket_handle_watch (DBusWatch *watch, { /* EINTR handled for us */ - if (errno == EAGAIN || errno == EWOULDBLOCK) + if (_dbus_get_is_errno_eagain_or_ewouldblock ()) _dbus_verbose ("No client available to accept after all\n"); else _dbus_verbose ("Failed to accept a client connection: %s\n", - _dbus_strerror (errno)); + _dbus_strerror_from_errno ()); SERVER_UNLOCK (server); } |