RE: [PHP] sem_get invalid argument for existing semaphore

2011-05-04 Thread Jeremy Greene
: Wednesday, May 04, 2011 8:14 AM To: php-general@lists.php.net Subject: [PHP] sem_get invalid argument for existing semaphore Hi, I am trying to do a sem_get on a semaphore that has already been created by a c++ program. But I'm getting this warning: PHP Warning: sem_get(): failed fo

Re: [PHP] sem_get invalid argument for existing semaphore

2011-05-04 Thread Mike Mackintosh
Are you using the whole hex key or removing the 0x prefix? Sent from my iPhone On May 4, 2011, at 8:13, "Jeremy Greene" wrote: > Hi, > > > > I am trying to do a sem_get on a semaphore that has already been created > by > > a c++ program. But I'm getting this warning: > > > > PHP Warning

[PHP] sem_get invalid argument for existing semaphore

2011-05-04 Thread Jeremy Greene
Hi, I am trying to do a sem_get on a semaphore that has already been created by a c++ program. But I'm getting this warning: PHP Warning: sem_get(): failed for key 0x31006dc2: Invalid argument in /home/jgreene/views/latest/lcast/apps/webapp/webApp.php on line 11 Here is the line 11: