diff options
Diffstat (limited to 'src/udev/udev-ctrl.c')
-rw-r--r-- | src/udev/udev-ctrl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/udev/udev-ctrl.c b/src/udev/udev-ctrl.c index 7986b2af27..2fdf4561a9 100644 --- a/src/udev/udev-ctrl.c +++ b/src/udev/udev-ctrl.c @@ -176,6 +176,7 @@ int udev_ctrl_get_fd(struct udev_ctrl *uctrl) { static inline int accept4_fallback(int sockfd) { int fd; + /* This is racey, but what can we do without accept4? */ if ((fd = accept(sockfd, NULL, NULL)) >= 0) { fcntl(fd, F_SETFL, O_NONBLOCK); fcntl(fd, F_SETFD, FD_CLOEXEC); |