BestJewSinceJC 700 Posting Maven

How can I create a semaphore using the above functions that will allow any process access to the semaphore? I've been playing around with global variables for hours thinking I was doing it wrong, but now I believe I was misled. I think the problem is that the other processes I'm running simply don't have permissions to access the semaphore. TBH I don't know how to test if this is really true because the return value of semget just indicates whether it was created properly.

oh, and when I test it, the "key" to the semaphore is identical across all my processes - but access is still only being allowed to the single process which originally called semget.


edit:

Solved, nevermind. And I honestly don't know what I did to solve it, :(