summaryrefslogtreecommitdiff
path: root/udevd.c
diff options
context:
space:
mode:
Diffstat (limited to 'udevd.c')
-rw-r--r--udevd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/udevd.c b/udevd.c
index 811f62243e..421c25a6e8 100644
--- a/udevd.c
+++ b/udevd.c
@@ -150,7 +150,7 @@ static void udev_run(struct hotplug_msg *msg)
/* child */
execle(udev_bin, "udev", msg->subsystem, NULL, env);
dbg("exec of child failed");
- exit(1);
+ _exit(1);
break;
case -1:
dbg("fork of child failed");
@@ -403,7 +403,7 @@ int main(int argc, char *argv[])
struct sigaction act;
fd_set readfds;
- init_logging("udevd");
+ logging_init("udevd");
dbg("version %s", UDEV_VERSION);
if (getuid() != 0) {
@@ -549,5 +549,6 @@ int main(int argc, char *argv[])
}
exit:
close(ssock);
+ logging_close();
exit(1);
}