removed some usleep debugging, so audioprocessing will not hang
[lcr.git] / main.c
diff --git a/main.c b/main.c
index 1561f9e..3481245 100644 (file)
--- a/main.c
+++ b/main.c
@@ -44,6 +44,10 @@ struct timezone now_tz;
 int global_debug = 0;
 int quit=0;
 
+#if 0
+struct lcr_fdset lcr_fdset[FD_SETSIZE];
+#endif
+
 pthread_mutex_t mutexd; // debug output mutex
 //pthread_mutex_t mutext; // trace output mutex
 pthread_mutex_t mutexe; // error output mutex
@@ -200,6 +204,11 @@ int main(int argc, char *argv[])
        int                     idletime = 0, idlecheck = 0;
        char                    tracetext[256];
 
+#if 0
+       /* init fdset */
+       memset(lcr_fdset, 0, sizeof(lcr_fdset));
+#endif
+
        /* current time */
        GET_NOW();
 
@@ -463,15 +472,15 @@ int main(int argc, char *argv[])
                /* all loops must be counted from the beginning since nodes might get freed during handler */
                all_idle = 1;
 
-#warning debugging usleep crash
-               debug_usleep(1, __FILE__, __LINE__, now_tm->tm_hour, now_tm->tm_min, now_tm->tm_sec);
+//#warning debugging usleep crash
+//             debug_usleep(1, __FILE__, __LINE__, now_tm->tm_hour, now_tm->tm_min, now_tm->tm_sec);
 
                /* handle mISDN messages from kernel */
                debug_prefix = "ISDN";
                if (mISDN_handler())
                        all_idle = 0;
-#warning debugging usleep crash
-               debug_usleep(1, __FILE__, __LINE__, now_tm->tm_hour, now_tm->tm_min, now_tm->tm_sec);
+//#warning debugging usleep crash
+//             debug_usleep(1, __FILE__, __LINE__, now_tm->tm_hour, now_tm->tm_min, now_tm->tm_sec);
 
 BUDETECT
 
@@ -614,8 +623,8 @@ BUDETECT
                        all_idle = 0;
                }
 #endif
-#warning debugging usleep crash
-               debug_usleep(1, __FILE__, __LINE__, now_tm->tm_hour, now_tm->tm_min, now_tm->tm_sec);
+//#warning debugging usleep crash
+//             debug_usleep(1, __FILE__, __LINE__, now_tm->tm_hour, now_tm->tm_min, now_tm->tm_sec);
 
                /* do idle checking */
                if (idlecheck != now)