SLEEP and MAXEXECUTIONTIME and NAUGHTY modules

From: Date: Mon, 26 Feb 2001 12:11:35 +0000
Subject: SLEEP and MAXEXECUTIONTIME and NAUGHTY modules
Groups: php.dev 
Request: Send a blank email to php-dev+get-47545@lists.php.net to get a copy of this message
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. 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); \ } as well as being more accurate it would not break max-execution-time. And while we are at it define php_msleep for milliseconds?

« previous php.dev (#47545) next »