Req #67990 [Opn->Csd]: Add optional nowait argument to sem_acquire

From: Date: Wed, 10 Sep 2014 05:49:01 +0000
Subject: Req #67990 [Opn->Csd]: Add optional nowait argument to sem_acquire
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-187485@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=67990&edit=1 ID: 67990 Updated by: mbeccati@php.net Reported by: mbeccati@php.net Summary: Add optional nowait argument to sem_acquire -Status: Open +Status: Closed Type: Feature/Change Request Package: Semaphore related Operating System: Anything but Windows -PHP Version: 5.6Git-2014-09-10 (Git) +PHP Version: 5.6.1 -Assigned To: +Assigned To: mbeccati Block user comment: N Private report: N New Comment: The fix for this bug has been committed. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. For Windows: http://windows.php.net/snapshots/ Thank you for the report, and for helping us make PHP better. To git@git.php.net:php-src.git 3571a68..0b648a4 PHP-5.6 -> PHP-5.6 5b82430..205b6b8 master -> master Previous Comments: ------------------------------------------------------------------------ [2014-09-10 05:27:09] mbeccati@php.net Description: ------------ Historically sem_acquire blocks the caller until the semaphore is acquired. The new option will allow the function to return immediately in case the semaphore is not available. Bug #39168 suggests adding a timeout, but the underlying semop() function doesn't allow that. Some OSes (Linux, Solaris) have semtimedop(), but given it's not universally supported, I left it out. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=67990&edit=1

« previous php.bugs (#187485) next »