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

WARNING [EMAIL PROTECTED] address is an endangered species -- Use
Wanna help me out?  Like Music?  Buy a CD:
Volunteer a little time:
----- Original Message -----
From: Rick Turbeville <[EMAIL PROTECTED]>
Newsgroups: php.general
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
> 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
> 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

PHP General Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to