summaryrefslogtreecommitdiff
path: root/wait_for_sysfs.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 /wait_for_sysfs.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 'wait_for_sysfs.c')
-rw-r--r--wait_for_sysfs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/wait_for_sysfs.c b/wait_for_sysfs.c
index 1d7044c61f..37de02261d 100644
--- a/wait_for_sysfs.c
+++ b/wait_for_sysfs.c
@@ -392,7 +392,7 @@ int main(int argc, char *argv[], char *envp[])
int rc = 0;
const char *error = NULL;
- init_logging("wait_for_sysfs");
+ logging_init("wait_for_sysfs");
if (argc != 2) {
dbg("error: subsystem");
@@ -475,5 +475,6 @@ exit:
dbg("result: waiting for sysfs successful '%s'", devpath);
}
+ logging_close();
exit(rc);
}