Hello
I am trying to create my message queue but keep getting -1 as my result. Trying to figure out where I might be getting off-base.
I tried it two ways so fat that seem like they *should* work but no luck.
Thanks in advance.
Code:int queue_id = msgget((key_t)9911, 0666 | IPC_CREAT); if (queue_id== -1){ cout<<"ERROR setting up q"<<endl; errFlag=1; } // int queue_id; // if((queue_id= msgget(key, 0666 | IPC_CREAT)) == -1){ // //If we get here then creating the queue has failed // cout<<"NO MSG Q"<<endl; // errFlag=1; // }



LinkBack URL
About LinkBacks


