Dear Sir;

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 )
   {
        do
           {
             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 ?

Sincerely

Ray Vaassen


_______________________________________________
Bug-sh-utils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-sh-utils

Reply via email to