mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-11 05:17:44 +03:00
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:
parent
a9eb840583
commit
efa1606eec
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user