projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9eb840
)
udevd: do not clean up fds in main
author
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Sat, 23 Jan 2016 16:45:22 +0000
(11:45 -0500)
committer
Zbigniew 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
patch
|
blob
|
history
diff --git
a/src/udev/udevd.c
b/src/udev/udevd.c
index
8627a81
..
e658d6a
100644
(file)
--- a/
src/udev/udevd.c
+++ b/
src/udev/udevd.c
@@
-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);