[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Thu, 04 Oct 2001 17:46:22 +0200
I am porting an application from HP-UX to Linux
the sleep call does not work as it should.
In man 3 sleep is declared to accept unsigned in sec. but it does not. (
2^32 - 1 sec )
I used a sleep forever as follows:
if ( true )
sleep ( 4000000000 );
while ( 1 );
I use the loop in case a signal hits the sleep call.
The sleep call returns immediately and the loop eats up all my CPU time.
Of course I know how to work around but still ...
What is wrong with the sleep call ?
- Bug Report,
Rainer Vaassen <=