udevd: do not clean up fds in main

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.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2016-01-23 11:45:22 -05:00
parent a9eb840583
commit efa1606eec
1 changed files with 1 additions and 1 deletions

View 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);