gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r5202 - GNUnet/src/util/network


From: gnunet
Subject: [GNUnet-SVN] r5202 - GNUnet/src/util/network
Date: Sun, 1 Jul 2007 05:33:59 -0600 (MDT)

Author: grothoff
Date: 2007-07-01 05:33:58 -0600 (Sun, 01 Jul 2007)
New Revision: 5202

Modified:
   GNUnet/src/util/network/select.c
Log:
debug

Modified: GNUnet/src/util/network/select.c
===================================================================
--- GNUnet/src/util/network/select.c    2007-07-01 11:26:37 UTC (rev 5201)
+++ GNUnet/src/util/network/select.c    2007-07-01 11:33:58 UTC (rev 5202)
@@ -762,6 +762,7 @@
       }
     }
   }
+  sh->description = "DEAD";
   MUTEX_UNLOCK(sh->lock);
   FREE(clientAddr);
   return NULL;
@@ -900,7 +901,7 @@
 void select_destroy(struct SelectHandle * sh) {
   void * unused;
 
-#if DEBUG_SELECT
+#if DEBUG_SELECT || 1
   GE_LOG(sh->ectx,
         GE_DEBUG | GE_DEVELOPER | GE_BULK,
         "Destroying select %p\n",
@@ -910,6 +911,7 @@
   signalSelect(sh);
   PTHREAD_STOP_SLEEP(sh->thread);
   PTHREAD_JOIN(sh->thread, &unused);
+  sh->thread = NULL;
   MUTEX_LOCK(sh->lock);
   while (sh->sessionCount > 0)
     destroySession(sh, sh->sessions[0]);





reply via email to

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