summaryrefslogtreecommitdiff
path: root/udevsend.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 /udevsend.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 'udevsend.c')
-rw-r--r--udevsend.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/udevsend.c b/udevsend.c
index 23ba1a1b00..883181c1b6 100644
--- a/udevsend.c
+++ b/udevsend.c
@@ -123,7 +123,7 @@ int main(int argc, char* argv[])
socklen_t addrlen;
int started_daemon = 0;
- init_logging("udevsend");
+ logging_init("udevsend");
dbg("version %s", UDEV_VERSION);
subsystem = get_subsystem(argv[1]);
@@ -215,5 +215,7 @@ exit:
if (sock != -1)
close(sock);
+ logging_close();
+
return retval;
}