ID: 13490 Updated by: swm Old Summary: Semaphores don't release automatically Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: Semaphore related Operating System: FreeBSD 4.1.1 PHP Version: 4.0.6 New Comment:
This is intended behaviour. This is how semaphores work. =) Use sem_remove() to remove semaphores. Previous Comments: ------------------------------------------------------------------------ [2001-09-28 19:03:32] [EMAIL PROTECTED] simplest script: <? $id = sem_get(0xff03e3); sem_acquire($id); ?> modules: './configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-mysql' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-sockets' description: When i run that script for the first time, warning doesnt appear, as it is described in manual. All the other calls hang apache processes without any chance for semaphore to unlock. However, if i try such variant: <? set_time_limit(0); $id = sem_get(0xff03e3); sem_acquire($id); sleep(1); sem_release($id); ?> everything works perfectly for single calls, but when I run my crash-test, which calls the php script 200 times at once, it hangs the semaphore again and many apache processes stay frozen. I think, the reason is incorrect request finalization. ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=13490&edit=1 -- 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]