X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=main.c;h=34812454c0d3f4139396887f9784cfbe6fcb898e;hp=1561f9e83c259b4da2ef45d097a354960f167c70;hb=59b8aa319440a9e58976cc921775889a27eb5347;hpb=6df42c1e9506ecf9fb5aa438e91cf3afc4fd7baf diff --git a/main.c b/main.c index 1561f9e..3481245 100644 --- 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)