summaryrefslogtreecommitdiff
path: root/src/udev/udev-ctrl.c
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2014-09-18 19:58:53 -0400
committerAnthony G. Basile <blueness@gentoo.org>2014-09-18 19:58:58 -0400
commitad689645019adec5673d8dd086aa93892cbaec81 (patch)
tree6445a14eae3be9fb870c02edc93735bfafb79a48 /src/udev/udev-ctrl.c
parent4364e777ebe707a93d34bbe5fd05ecb38f69a54d (diff)
src: minor code cleanup
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/udev/udev-ctrl.c')
-rw-r--r--src/udev/udev-ctrl.c1
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);