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/sender.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Source/charon/threads/sender.c') diff --git a/Source/charon/threads/sender.c b/Source/charon/threads/sender.c index 7c7180ad8..c47c4e2c0 100644 --- a/Source/charon/threads/sender.c +++ b/Source/charon/threads/sender.c @@ -22,7 +22,6 @@ #include #include -#include #include "sender.h" @@ -74,7 +73,7 @@ static void send_packets(private_sender_t * this) /* cancellation disabled by default */ pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, NULL); - this->logger->log(this->logger, CONTROL, "sender thread running, pid %d", getpid()); + this->logger->log(this->logger, CONTROL, "sender thread running, thread_id %u", (int)pthread_self()); while (1) { -- cgit v1.2.3