]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udevd: do not clean up fds in main 2423/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 23 Jan 2016 16:45:22 +0000 (11:45 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 23 Jan 2016 16:45:22 +0000 (11:45 -0500)
fds will also be closed during manager cleanup in run, leading
to an error when we try to close them again. It is now possible
to "leak" the fds on error, but it's an unlikely event and we
will exit immediately anyway.

Fixes #2418.

src/udev/udevd.c

index 8627a81ec2248e4c4c79018a6a00507f8e148a80..e658d6a079f67d7bffb9cc9dba5b1e274b2a06c9 100644 (file)
@@ -1652,7 +1652,7 @@ exit:
 
 int main(int argc, char *argv[]) {
         _cleanup_free_ char *cgroup = NULL;
-        _cleanup_close_ int fd_ctrl = -1, fd_uevent = -1;
+        int fd_ctrl = -1, fd_uevent = -1;
         int r;
 
         log_set_target(LOG_TARGET_AUTO);