do not sleep locked in notif-il
authorMichal Voců <michal@ruk.cuni.cz>
Wed, 19 Sep 2007 14:42:19 +0000 (14:42 +0000)
committerMichal Voců <michal@ruk.cuni.cz>
Wed, 19 Sep 2007 14:42:19 +0000 (14:42 +0000)
org.glite.lb.logger/src/queue_thread.c

index 8064ce7..cb5424e 100644 (file)
@@ -148,7 +148,6 @@ queue_thread(void *q)
                if(pthread_mutex_unlock(&flush_lock) < 0)
                        abort();
 #else
-               event_queue_cond_lock(eq);
 #endif
 
                /* if there was some error with server, sleep for a while */
@@ -162,6 +161,11 @@ queue_thread(void *q)
                }
 #endif
 
+#if defined(INTERLOGD_HANDLE_CMD) && defined(INTERLOGD_FLUSH)
+#else
+               event_queue_cond_lock(eq);
+#endif
+
                if(exit) {
                        /* we have to clean up before exiting */
                        event_queue_cond_unlock(eq);