-fix debug logic
authorChristian Grothoff <christian@grothoff.org>
Thu, 28 May 2015 13:40:39 +0000 (13:40 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 28 May 2015 13:40:39 +0000 (13:40 +0000)
src/vpn/gnunet-helper-vpn.c

index 0ac398d538d5318feed833ec17b49e9209df25af..ba77657a6c874a06e3fba3508cc2d58313c8acf9 100644 (file)
@@ -50,7 +50,7 @@
  * Should we print (interesting|debug) messages that can happen during
  * normal operation?
  */
-#define DEBUG GNUNET_YES
+#define DEBUG GNUNET_NO
 
 /**
  * Maximum size of a GNUnet message (GNUNET_SERVER_MAX_MESSAGE_SIZE)
@@ -360,10 +360,6 @@ run (int fd_tun)
   /* write refers to reading from stdin, writing to fd_tun */
   int write_open = 1;
 
-  /* FIXME: this should work with '&&', but then 2/5 VPN
-     tests fail. With '||' the tests pass, but this process
-     keeps running --- but only for the 'GNS' test ---
-     even though the stdout is closed :-(. Very confusing. */
   while ((1 == read_open) && (1 == write_open))
   {
     FD_ZERO (&fds_w);
@@ -569,8 +565,6 @@ main (int argc, char **argv)
   int fd_tun;
   int global_ret;
 
-  fprintf (stderr,
-           "VPN helper running!\n");
   if (6 != argc)
   {
     fprintf (stderr, "Fatal: must supply 5 arguments!\n");