diff options
author | greg@kroah.com <greg@kroah.com> | 2004-02-02 08:19:41 -0800 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 21:13:20 -0700 |
commit | 95a6f4c8acafe7031087667aa556a50a6a091c93 (patch) | |
tree | 8f7775e25d9315f20c0cc44cac362976e96627d2 /udevd.c | |
parent | 3a7798f4714c88021b6ac0cda3e1d818a3fa7a07 (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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); |