Re: Problem with sem_get and semaphores
| From: | Richard Lynch | Date: | Fri, 05 Oct 2001 05:21:44 +0000 |
| Subject: | Re: Problem with sem_get and semaphores | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-70030@lists.php.net to get a copy of this message | ||
It *should* be able to... That's the whole point of the darn things. :-)
Is 0x576a the correct key?... Sure PHP isn't treating that as a string or
something?
--
WARNING richard@zend.com address is an endangered species -- Use
ceo@l-i-e.com
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
----- Original Message -----
From: Rick Turbeville <rickt@cfw.com>
Newsgroups: php.general
To: <php-general@lists.php.net>
Sent: Thursday, October 04, 2001 2:52 PM
Subject: Problem with sem_get and semaphores
> Hi,
>
> I am trying to do a sem_get on a semaphore that has already been created
by
> a c program. Instead of getting back the semaphore id, I get:
>
> Warning: semget() failed for key 0x576a: Invalid argument in
> /usr/local/apache/htdocs/bioace/testshmop.php on line 5
>
> I can see the semaphores by using "ipcs" and they appear to be there with
> good permissions, etc.
>
> If I call sem_get with a new id everything seems to work fine - the
problem
> is only if I try to interact with a semaphore created by another program.
>
> Can sem_get not talk to semaphores in the outside world?
>
> Any help is greatly appreciated.
>
> Thanks,
>
> Rick
>
>
>