aboutsummaryrefslogtreecommitdiff
path: root/src/vpn/gnunet-helper-vpn.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vpn/gnunet-helper-vpn.c')
-rw-r--r--src/vpn/gnunet-helper-vpn.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/vpn/gnunet-helper-vpn.c b/src/vpn/gnunet-helper-vpn.c
index 521aba0f8..0ac398d53 100644
--- a/src/vpn/gnunet-helper-vpn.c
+++ b/src/vpn/gnunet-helper-vpn.c
@@ -50,7 +50,7 @@
50 * Should we print (interesting|debug) messages that can happen during 50 * Should we print (interesting|debug) messages that can happen during
51 * normal operation? 51 * normal operation?
52 */ 52 */
53#define DEBUG GNUNET_NO 53#define DEBUG GNUNET_YES
54 54
55/** 55/**
56 * Maximum size of a GNUnet message (GNUNET_SERVER_MAX_MESSAGE_SIZE) 56 * Maximum size of a GNUnet message (GNUNET_SERVER_MAX_MESSAGE_SIZE)
@@ -364,7 +364,7 @@ run (int fd_tun)
364 tests fail. With '||' the tests pass, but this process 364 tests fail. With '||' the tests pass, but this process
365 keeps running --- but only for the 'GNS' test --- 365 keeps running --- but only for the 'GNS' test ---
366 even though the stdout is closed :-(. Very confusing. */ 366 even though the stdout is closed :-(. Very confusing. */
367 while ((1 == read_open) || (1 == write_open)) 367 while ((1 == read_open) && (1 == write_open))
368 { 368 {
369 FD_ZERO (&fds_w); 369 FD_ZERO (&fds_w);
370 FD_ZERO (&fds_r); 370 FD_ZERO (&fds_r);
@@ -547,6 +547,7 @@ PROCESS_BUFFER:
547 } 547 }
548 } 548 }
549 } 549 }
550 fprintf (stderr, "Existing select() loop\n");
550} 551}
551 552
552 553
@@ -568,6 +569,8 @@ main (int argc, char **argv)
568 int fd_tun; 569 int fd_tun;
569 int global_ret; 570 int global_ret;
570 571
572 fprintf (stderr,
573 "VPN helper running!\n");
571 if (6 != argc) 574 if (6 != argc)
572 { 575 {
573 fprintf (stderr, "Fatal: must supply 5 arguments!\n"); 576 fprintf (stderr, "Fatal: must supply 5 arguments!\n");