chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] rework the logging code so that each program logs with the proper name in...
[elogind.git]
/
udevd.c
diff --git
a/udevd.c
b/udevd.c
index dc7d581c242e798b03d6071619446b1c61fe35f8..331b7e4b84aa9d0229f709268dcbe58248e88701 100644
(file)
--- a/
udevd.c
+++ b/
udevd.c
@@
-42,6
+42,7
@@
#include "logging.h"
#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;
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;
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);
/* only let one version of the daemon run at any one time */
if (one_and_only() != 0)
exit(0);