gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r4034 - in GNUnet/src: applications/bootstrap_http server


From: grothoff
Subject: [GNUnet-SVN] r4034 - in GNUnet/src: applications/bootstrap_http server
Date: Sat, 23 Dec 2006 20:16:34 -0800 (PST)

Author: grothoff
Date: 2006-12-23 20:16:31 -0800 (Sat, 23 Dec 2006)
New Revision: 4034

Modified:
   GNUnet/src/applications/bootstrap_http/http.c
   GNUnet/src/server/gnunet-transport-check.c
Log:
shutdown on CTRL-C


Modified: GNUnet/src/applications/bootstrap_http/http.c
===================================================================
--- GNUnet/src/applications/bootstrap_http/http.c       2006-12-24 02:25:36 UTC 
(rev 4033)
+++ GNUnet/src/applications/bootstrap_http/http.c       2006-12-24 04:16:31 UTC 
(rev 4034)
@@ -265,7 +265,8 @@
           curl_multi_strerror(mret));
     goto cleanup;
   }
-  while (YES == termTest(targ)) {
+  while ( (YES == termTest(targ)) &&
+         (GNUNET_SHUTDOWN_INITIATE() == NO) ) {
     max = 0;
     FD_ZERO(&rs);
     FD_ZERO(&ws);

Modified: GNUnet/src/server/gnunet-transport-check.c
===================================================================
--- GNUnet/src/server/gnunet-transport-check.c  2006-12-24 02:25:36 UTC (rev 
4033)
+++ GNUnet/src/server/gnunet-transport-check.c  2006-12-24 04:16:31 UTC (rev 
4034)
@@ -149,7 +149,8 @@
   memcpy(&noise[1],
         expectedValue,
         expectedSize);
-  while (repeat > 0) {
+  while ( (repeat > 0) &&
+         (GNUNET_SHUTDOWN_TEST() == NO) ) {
     repeat--;
     ok = NO;
     if (OK != sendPlaintext(tsession,
@@ -505,7 +506,8 @@
           stats[0] - stats[1]);
     releaseService(bootstrap);
   } else {
-    while (Xrepeat-- > 0)
+    while ( (Xrepeat-- > 0) &&
+           (GNUNET_SHUTDOWN_INITIATE() == NO) )
       transport->forEach(&testTAPI,
                         &res);
   }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]