bug-sh-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem with Sleep


From: David Slik
Subject: Problem with Sleep
Date: Fri, 27 Oct 2000 18:49:59 -0700

Hello.

I believe that I may have isolated a bug in sleep() on the Linux
platform. This problem can be demonstrated by executing the command:

sleep(4000000000)

which returns immediately. The command:

sleep(2000000000)

sleeps as expected.

I have isolated this to the unix sleep() function. It appears that on
Linux the parameter is being treated internally as a signed number.

Solaris is even more inconsistent, correctly sleeping for 1009317314 or
lower but incorrectly when passed 1009317315 or higher.

Can you suggest where the most appropriate location is to bring up this issue?

Thanks,

   David Slik




reply via email to

[Prev in Thread] Current Thread [Next in Thread]