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



Reply via email to