[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] When logging via syslog, include the pid whenever we provide
Update of /home2/or/cvsroot/tor/src/common
In directory moria:/home/arma/work/onion/cvs/tor/src/common
Modified Files:
log.c
Log Message:
When logging via syslog, include the pid whenever we provide
a log entry. Suggested by Todd Fries.
Index: log.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/common/log.c,v
retrieving revision 1.104
retrieving revision 1.105
diff -u -d -r1.104 -r1.105
--- log.c 1 Nov 2005 06:15:48 -0000 1.104
+++ log.c 13 Nov 2005 22:28:07 -0000 1.105
@@ -511,7 +511,7 @@
logfile_t *lf;
if (syslog_count++ == 0)
/* This is the first syslog. */
- openlog("Tor", LOG_NDELAY, LOG_DAEMON);
+ openlog("Tor", LOG_PID | LOG_NDELAY, LOG_DAEMON);
lf = tor_malloc_zero(sizeof(logfile_t));
lf->min_loglevel = loglevelMin;