diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-05-28 13:40:39 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-05-28 13:40:39 +0000 |
commit | ed3d086058cff03fd3523a9cfc0e17dd66a2c7ab (patch) | |
tree | 192706924a5c79d1a8602f5c3e5d7b5b402ab112 /src | |
parent | ff3cd09b02c06f9ac844bc1d0fd1bf525c565308 (diff) | |
download | gnunet-ed3d086058cff03fd3523a9cfc0e17dd66a2c7ab.tar.gz gnunet-ed3d086058cff03fd3523a9cfc0e17dd66a2c7ab.zip |
-fix debug logic
Diffstat (limited to 'src')
-rw-r--r-- | src/vpn/gnunet-helper-vpn.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/vpn/gnunet-helper-vpn.c b/src/vpn/gnunet-helper-vpn.c index 0ac398d53..ba77657a6 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_YES | 53 | #define DEBUG GNUNET_NO |
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) |
@@ -360,10 +360,6 @@ run (int fd_tun) | |||
360 | /* write refers to reading from stdin, writing to fd_tun */ | 360 | /* write refers to reading from stdin, writing to fd_tun */ |
361 | int write_open = 1; | 361 | int write_open = 1; |
362 | 362 | ||
363 | /* FIXME: this should work with '&&', but then 2/5 VPN | ||
364 | tests fail. With '||' the tests pass, but this process | ||
365 | keeps running --- but only for the 'GNS' test --- | ||
366 | even though the stdout is closed :-(. Very confusing. */ | ||
367 | while ((1 == read_open) && (1 == write_open)) | 363 | while ((1 == read_open) && (1 == write_open)) |
368 | { | 364 | { |
369 | FD_ZERO (&fds_w); | 365 | FD_ZERO (&fds_w); |
@@ -569,8 +565,6 @@ main (int argc, char **argv) | |||
569 | int fd_tun; | 565 | int fd_tun; |
570 | int global_ret; | 566 | int global_ret; |
571 | 567 | ||
572 | fprintf (stderr, | ||
573 | "VPN helper running!\n"); | ||
574 | if (6 != argc) | 568 | if (6 != argc) |
575 | { | 569 | { |
576 | fprintf (stderr, "Fatal: must supply 5 arguments!\n"); | 570 | fprintf (stderr, "Fatal: must supply 5 arguments!\n"); |