From 25c41f4df7079b64ba53184e47edbc012ae96123 Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Sun, 4 Dec 2005 11:46:58 +0000 Subject: - logging cleanup - pid re-replaced with thread_ids, since nptl does not distinguish pids between threads --- Source/charon/threads/thread_pool.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Source/charon/threads/thread_pool.c') diff --git a/Source/charon/threads/thread_pool.c b/Source/charon/threads/thread_pool.c index 26c4d1f29..0146e1c6e 100644 --- a/Source/charon/threads/thread_pool.c +++ b/Source/charon/threads/thread_pool.c @@ -24,7 +24,6 @@ #include #include #include -#include #include "thread_pool.h" @@ -119,7 +118,7 @@ static void process_jobs(private_thread_pool_t *this) /* cancellation disabled by default */ pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, NULL); - this->worker_logger->log(this->worker_logger, CONTROL, "worker thread running, pid: %d", getpid()); + this->worker_logger->log(this->worker_logger, CONTROL, "worker thread running, thread_id: %u", (int)pthread_self()); for (;;) { job_t *job; -- cgit v1.2.3