On Sat, 20 May 2000, Benjamin Draper wrote: > Thank you Chris! > > You're spot on with null_time being the problem. I'm not sure how, >whether it's through select, or an overrun, it doesn't stay at 0 for >very long. I took your advice and now have: > >> do { > null_time.tv_sec = 0; > null_time.tv_usec = 0; >> circle_sleep(&timeout); >> gettimeofday(&now, (struct timezone *) 0); >> timediff(&timeout, &last_time, &now); >> } while (timeout.tv_usec || timeout.tv_sec); >> > > My tests were done using stock Circle30bpl16, so the only changes were >the debug output, so perhaps your little addition should make it into >bpl18? George? Print 'null_time' before and after the select() calls. If those aren't changing it, put log() around all the other uses of it too. -- George Greer greerga@circlemud.org +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 04/10/01 PDT