summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-11-13 22:28:07 +0000
committerRoger Dingledine <arma@torproject.org>2005-11-13 22:28:07 +0000
commited4f15b2a78d29a9c124c77533775c037a874029 (patch)
tree371fbfb42d4ddcb69d553bc5fa6f8ff9fe6e08c9
parentbf3e689eefd5173f9e10d6ac333383c590fdf79d (diff)
downloadtor-ed4f15b2a78d29a9c124c77533775c037a874029.tar.gz
tor-ed4f15b2a78d29a9c124c77533775c037a874029.zip
When logging via syslog, include the pid whenever we provide
a log entry. Suggested by Todd Fries. svn:r5366
-rw-r--r--src/common/log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/log.c b/src/common/log.c
index 9807fd2921..85cd04df44 100644
--- a/src/common/log.c
+++ b/src/common/log.c
@@ -511,7 +511,7 @@ add_syslog_log(int loglevelMin, int loglevelMax)
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;