diff options
author | Tom Gundersen <teg@jklm.no> | 2015-06-13 20:51:56 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2015-06-13 20:51:56 +0200 |
commit | bbe181b489921e5afeaa2b0bc1c16c62aeef8f65 (patch) | |
tree | 578d86e4bafd93fdf16bb66cb550a77a2784947e /src/libsystemd/sd-netlink/netlink-message.c | |
parent | 1c4baffc1895809bae9ac36b670af90a4cb9cd7d (diff) |
sd-netlink: drop the write-queue
AF_NETLINK is not write-buffered, so this was actually never used.
Diffstat (limited to 'src/libsystemd/sd-netlink/netlink-message.c')
-rw-r--r-- | src/libsystemd/sd-netlink/netlink-message.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-netlink/netlink-message.c b/src/libsystemd/sd-netlink/netlink-message.c index 9c280b1699..fe9714ab5d 100644 --- a/src/libsystemd/sd-netlink/netlink-message.c +++ b/src/libsystemd/sd-netlink/netlink-message.c @@ -1410,7 +1410,7 @@ int socket_write_message(sd_netlink *nl, sd_netlink_message *m) { k = sendto(nl->fd, m->hdr, m->hdr->nlmsg_len, 0, &addr.sa, sizeof(addr)); if (k < 0) - return (errno == EAGAIN) ? 0 : -errno; + return -errno; return k; } |