At 12:11 PM 2/26/2001 +0000, Sam Liddicott wrote:
>I notice that usleep and sleep both clash on solaris with
>Max-execution-time.
>
>1) I notice various modules using sleep:
>db, hyperwave, mysql, oci8, satellite
>which seems to break max execution time.

Any idea why and where they are using sleep()?


>2) Could we not use:
>
>#include <unistd.h>
>#define sleep (n) \
>  { struct timeval tv; \
>    tv.tv_sec=n; \
>    tv.tv_usec=0; \
>    select(0,NULL,NULL,NULL,&tv); \
>  }


Where did you see that?

Andi


>as well as being more accurate it would not break max-execution-time.
>
>And while we are at it define php_msleep for milliseconds?
>
>--
>PHP Development Mailing List <http://www.php.net/>
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to