thumpkidd9
Programmer
Hello,
I am having a problem with my semaphores. After using semget(), it always returns a -1. I've read about different ways to initialize it but I dont see what is wrong.
is it a syntax error?
Thanks..
I am having a problem with my semaphores. After using semget(), it always returns a -1. I've read about different ways to initialize it but I dont see what is wrong.
Code:
sid1=semget(IPC_PRIVATE,N,0666|IPC_CREAT);
(sid1==-1)printf("Trouble with semget\n");
is it a syntax error?
Thanks..