diff options
author | Martin Willi <martin@strongswan.org> | 2005-11-26 15:44:40 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2005-11-26 15:44:40 +0000 |
commit | c1eb15373373f103e4f69dc3f6d001aa3f69cbc6 (patch) | |
tree | 4fdb0bc01003a358ad273e03a398a6bf8c1dc28a /Source/charon/threads/sender.c | |
parent | f1c91cf037689979049f4904fd3d76f85cd98981 (diff) | |
download | strongswan-c1eb15373373f103e4f69dc3f6d001aa3f69cbc6.tar.bz2 strongswan-c1eb15373373f103e4f69dc3f6d001aa3f69cbc6.tar.xz |
- threads are new identified by pid
Diffstat (limited to 'Source/charon/threads/sender.c')
-rw-r--r-- | Source/charon/threads/sender.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/charon/threads/sender.c b/Source/charon/threads/sender.c index 5ad00e00f..2b33c0d22 100644 --- a/Source/charon/threads/sender.c +++ b/Source/charon/threads/sender.c @@ -22,6 +22,7 @@ #include <stdlib.h> #include <pthread.h> +#include <unistd.h> #include "sender.h" @@ -73,6 +74,8 @@ 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()); + while (1) { while (global_send_queue->get(global_send_queue,¤t_packet) == SUCCESS) |