From c1eb15373373f103e4f69dc3f6d001aa3f69cbc6 Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Sat, 26 Nov 2005 15:44:40 +0000 Subject: - threads are new identified by pid --- Source/charon/threads/receiver.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Source/charon/threads/receiver.c') diff --git a/Source/charon/threads/receiver.c b/Source/charon/threads/receiver.c index b46949bf2..b78ebcf09 100644 --- a/Source/charon/threads/receiver.c +++ b/Source/charon/threads/receiver.c @@ -22,6 +22,7 @@ #include #include +#include #include "receiver.h" @@ -71,8 +72,12 @@ static void receive_packets(private_receiver_t * this) { packet_t * current_packet; job_t *current_job; + /* cancellation disabled by default */ pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, NULL); + + this->logger->log(this->logger, CONTROL, "receiver thread running, pid %d", getpid()); + while (1) { while (global_socket->receive(global_socket,¤t_packet) == SUCCESS) -- cgit v1.2.3