[wp-testers] semget() errors (cache.php)

Ryan Boren ryan at boren.nu
Tue Nov 15 09:02:59 GMT 2005


On Tue, 2005-11-15 at 18:21 +1000, David Munn wrote:
> after the latest cache change set, i receive this error when enabling 
> the new cache system.
> 
> <br />
> <b>Warning</b>:  semget() failed for key 0x154e: Permission denied in 
> <b>/www/f/forumfightco/htdocs/4wisemonkeys.com/wp-includes/cache.php</b> 
> on line <b>284</b><br />
> <br />
> <b>Warning</b>:  sem_acquire(): supplied argument is not a valid SysV 
> semaphore resource in 
> <b>/www/f/forumfightco/htdocs/4wisemonkeys.com/wp-includes/cache.php</b> 
> on line <b>285</b><br />
> <br />
> <b>Warning</b>:  sem_release(): supplied argument is not a valid SysV 
> semaphore resource in 
> <b>/www/f/forumfightco/htdocs/4wisemonkeys.com/wp-includes/cache.php</b> 
> on line <b>324</b><br />

We hard code 5454 (hex 154e) as our semaphore at the moment.  We should
probably use ftok() although maybe we should just get rid of the
semaphores and just flock() all the time.  Anyone have opinions on the
use of semaphores?  They might not have broad enough context to protect
the cache sufficiently, and they are not very portable.

Ryan



More information about the wp-testers mailing list