diff options
Diffstat (limited to 'Source/charon/threads/receiver.c')
-rw-r--r-- | Source/charon/threads/receiver.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/charon/threads/receiver.c b/Source/charon/threads/receiver.c index e02fd89e1..85410d298 100644 --- a/Source/charon/threads/receiver.c +++ b/Source/charon/threads/receiver.c @@ -22,7 +22,6 @@ #include <stdlib.h> #include <pthread.h> -#include <unistd.h> #include "receiver.h" @@ -74,7 +73,7 @@ static void receive_packets(private_receiver_t * this) /* cancellation disabled by default */ pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, NULL); - this->logger->log(this->logger, CONTROL, "receiver thread running, pid %d", getpid()); + this->logger->log(this->logger, CONTROL, "receiver thread running, thread_id %u", (int)pthread_self()); while (1) { |