summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/udev/udevd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/udev/udevd.c b/src/udev/udevd.c
index 4f43a6fe12..19640cb6ea 100644
--- a/src/udev/udevd.c
+++ b/src/udev/udevd.c
@@ -1507,7 +1507,9 @@ int main(int argc, char *argv[]) {
r = log_error_errno(errno, "fork of daemon failed: %m");
goto exit;
default:
- goto exit_daemonize;
+ mac_selinux_finish();
+ log_close();
+ _exit(EXIT_SUCCESS);
}
setsid();
@@ -1697,7 +1699,6 @@ int main(int argc, char *argv[]) {
exit:
if (manager)
udev_ctrl_cleanup(manager->ctrl);
-exit_daemonize:
mac_selinux_finish();
log_close();
return r < 0 ? EXIT_FAILURE : EXIT_SUCCESS;