diff options
author | kay.sievers@vrfy.org <kay.sievers@vrfy.org> | 2004-10-18 18:15:10 -0700 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 22:02:45 -0700 |
commit | 7257cb18458e6b51cc9655887b7f9745f704b71f (patch) | |
tree | d7ddc0f12844e7ed866905a47ff806fcb4919c66 /udevd.c | |
parent | 0f634c33d7eb634737915dc1aa3b7d7342d1a5f2 (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.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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); } |