summaryrefslogtreecommitdiff
path: root/udevd.c
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2004-02-02 08:19:41 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:13:20 -0700
commit95a6f4c8acafe7031087667aa556a50a6a091c93 (patch)
tree8f7775e25d9315f20c0cc44cac362976e96627d2 /udevd.c
parent3a7798f4714c88021b6ac0cda3e1d818a3fa7a07 (diff)
[PATCH] rework the logging code so that each program logs with the proper name in the syslog.
Diffstat (limited to 'udevd.c')
-rw-r--r--udevd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/udevd.c b/udevd.c
index dc7d581c24..331b7e4b84 100644
--- a/udevd.c
+++ b/udevd.c
@@ -42,6 +42,7 @@
#include "logging.h"
+unsigned char logname[42];
static pthread_mutex_t msg_lock;
static pthread_mutex_t msg_active_lock;
static pthread_cond_t msg_active;
@@ -354,6 +355,8 @@ int main(int argc, char *argv[])
pthread_t mgr_exec_tid;
int retval;
+ init_logging("udevd");
+
/* only let one version of the daemon run at any one time */
if (one_and_only() != 0)
exit(0);