Re: Crazy bearerbox uses 98% CPU

Jonathan Houser <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
> Your command gives:
> 
> #0  0xffffe002 in ?? ()
> #1  0x080c0710 in gwthread_sleep ()
> #2  0x08051df4 in main ()
> #3  0x42015704 in __libc_start_main () from /lib/tls/libc.so.6

      Looking at the code that entails, I noticed something:

milliseconds = seconds * 1000;
if (milliseconds < 0)
     milliseconds = POLL_NOTIMEOUT;

Should the above instead be:

milliseconds = seconds * 1000;
if (milliseconds <= 0)
     milliseconds = POLL_NOTIMEOUT;

So that you always have a value for milliseconds (and thus actually sleep)?

Jon
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.