summaryrefslogtreecommitdiff
path: root/udevd.c
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2004-10-18 18:15:10 -0700
committerGreg KH <gregkh@suse.de>2005-04-26 22:02:45 -0700
commit7257cb18458e6b51cc9655887b7f9745f704b71f (patch)
treed7ddc0f12844e7ed866905a47ff806fcb4919c66 /udevd.c
parent0f634c33d7eb634737915dc1aa3b7d7342d1a5f2 (diff)
[PATCH] close the syslog
Seems that we never closed the opened syslog. Here is a patch to do this in all our binaries.
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);
}