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 [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] 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 <[EMAIL PROTECTED]> Newsgroups: php.general To: <[EMAIL PROTECTED]> 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 > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]