aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/threads/scheduler.c
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2005-12-04 11:46:58 +0000
committerMartin Willi <martin@strongswan.org>2005-12-04 11:46:58 +0000
commit25c41f4df7079b64ba53184e47edbc012ae96123 (patch)
tree93d1ff241cd7bf140c4780478750a20316a9c516 /Source/charon/threads/scheduler.c
parent26cfe75e4d4266c75ad6adb5244beec6731e6956 (diff)
downloadstrongswan-25c41f4df7079b64ba53184e47edbc012ae96123.tar.bz2
strongswan-25c41f4df7079b64ba53184e47edbc012ae96123.tar.xz
- logging cleanup
- pid re-replaced with thread_ids, since nptl does not distinguish pids between threads
Diffstat (limited to 'Source/charon/threads/scheduler.c')
-rw-r--r--Source/charon/threads/scheduler.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/charon/threads/scheduler.c b/Source/charon/threads/scheduler.c
index 50271eb62..e4f9ab308 100644
--- a/Source/charon/threads/scheduler.c
+++ b/Source/charon/threads/scheduler.c
@@ -22,7 +22,6 @@
#include <stdlib.h>
#include <pthread.h>
-#include <unistd.h>
#include "scheduler.h"
@@ -73,7 +72,7 @@ static void get_events(private_scheduler_t * this)
/* cancellation disabled by default */
pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, NULL);
- this->logger->log(this->logger, CONTROL, "scheduler thread running, pid %d", getpid());
+ this->logger->log(this->logger, CONTROL, "scheduler thread running, thread_id %u", (int)pthread_self());
for (;;)
{