summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2024-08-31 15:37:36 +0200
committerMike Yuan <me@yhndnzj.com>2024-09-04 18:50:55 +0200
commit3c0d7653751559c72bfa973e43387eeb1e141569 (patch)
tree3a90ff96f938233faeb53094c25d7f21e73d97ba /src
parentcore/manager: close all cmsg fds where none is expected (diff)
downloadsystemd-3c0d7653751559c72bfa973e43387eeb1e141569.tar.xz
systemd-3c0d7653751559c72bfa973e43387eeb1e141569.zip
udev-ctrl: drop unused next_datagram_size_fd() call
Diffstat (limited to 'src')
-rw-r--r--src/udev/udev-ctrl.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/udev/udev-ctrl.c b/src/udev/udev-ctrl.c
index 5ce77af89a..34cd6665d4 100644
--- a/src/udev/udev-ctrl.c
+++ b/src/udev/udev-ctrl.c
@@ -169,12 +169,6 @@ static int udev_ctrl_connection_event_handler(sd_event_source *s, int fd, uint32
* To avoid the object freed, let's increment the refcount. */
uctrl = udev_ctrl_ref(userdata);
- size = next_datagram_size_fd(fd);
- if (size < 0)
- return log_error_errno(size, "Failed to get size of message: %m");
- if (size == 0)
- return 0; /* Client disconnects? */
-
size = recvmsg_safe(fd, &smsg, 0);
if (size == -EINTR)
return 0;