X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=main.c;h=38c710a9db2d7f186521bcc4be4e98376b527004;hp=1561f9e83c259b4da2ef45d097a354960f167c70;hb=ce197cab91d66c14f11d818f343720a785dd616e;hpb=99054aa5cc77c38fddb3eafcabf904cd22b26870 diff --git a/main.c b/main.c index 1561f9e..38c710a 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();