Ask a Question related to PHP Bugs, Design and Development.
-
s dot s at terra dot com dot br #1
#39168 [NEW]: Semaphore acquire timeout
From: s dot s at terra dot com dot br
Operating system: Freebsd 6
PHP version: 5.1.6
PHP Bug Type: Feature/Change Request
Bug description: Semaphore acquire timeout
Description:
------------
Should be great if there was an optional parameter (default = 0) in
function sem_acquire to pass a timeout (in seconds).
Maybe send a warning no semaphore timeout ;)
Reproduce code:
---------------
Something like
<?php
$key = ftok(__FILE__, 'R');
$sem = sem_get($key);
if(sem_acquire($sem, 10)) {
echo 'Semaphore acquire failed. Timeout?';
}
else {
echo 'Semaphore acquired :)';
sem_release($sem);
}
?>
--
Edit bug report at [url]http://bugs.php.net/?id=39168&edit=1[/url]
--
Try a CVS snapshot (PHP 4.4): [url]http://bugs.php.net/fix.php?id=39168&r=trysnapshot44[/url]
Try a CVS snapshot (PHP 5.2): [url]http://bugs.php.net/fix.php?id=39168&r=trysnapshot52[/url]
Try a CVS snapshot (PHP 6.0): [url]http://bugs.php.net/fix.php?id=39168&r=trysnapshot60[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=39168&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=39168&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=39168&r=needtrace[/url]
Need Reproduce Script: [url]http://bugs.php.net/fix.php?id=39168&r=needscript[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=39168&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=39168&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=39168&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=39168&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=39168&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=39168&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=39168&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=39168&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=39168&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=39168&r=gnused[/url]
Floating point limitations: [url]http://bugs.php.net/fix.php?id=39168&r=float[/url]
No Zend Extensions: [url]http://bugs.php.net/fix.php?id=39168&r=nozend[/url]
MySQL Configuration Error: [url]http://bugs.php.net/fix.php?id=39168&r=mysqlcfg[/url]
s dot s at terra dot com dot br Guest
-
Photoshop Acquire hangs
We're running Photoshop 7.01 and ImageReady 7 on an PowerMac g4 (533MHz with 512 Mb memory). The scanner attached is a Heidelberg 1450, using... -
ANNOUNCE: POSIX::RT::Semaphore 0.01
POSIX::RT::Semaphore is a Perl interface to POSIX.1b (Realtime) semaphores, at least as supported by your system. ;-) RT semaphores are objects... -
SysV Semaphore Troubles
On Sun, 03 Aug 2003 12:21:05 -0400, Marc Rochkind wrote: The troubling scenario is when the program increments or decrements the semaphore so... -
semaphore example needed
Hi all, I tried to use IPC::Semaphore but tried for a long time without success. What I want to do is like this : I want to limit a perl... -
Semaphore tutorial?
Does anybody have a good tutorial for how SysV semaphores work, specifically the semop() function? I've read the description in Stevens' Unix...



Reply With Quote

