aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/threads/sender.c
diff options
context:
space:
mode:
Diffstat (limited to 'Source/charon/threads/sender.c')
-rw-r--r--Source/charon/threads/sender.c3
1 files changed, 1 insertions, 2 deletions
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 <stdlib.h>
#include <pthread.h>
-#include <unistd.h>
#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)
{