Teen Programmers Unite  
 

 

Return to forum top

System V message queues

Posted by pjod1 [send private reply] at September 20, 2002, 08:30:53 AM

Hi,
I'm using system v message queues to pass data between two separate processes (running on Linux). Most of the time there is no problem adding messages to the queue, but sometimes I keep getting the error showed below.

code:
if (msgsnd(msqid, data, size(data), IPC_NOWAIT) < 0)
{
perror("msgsnd");
exit(1);
}

Reported error:
'msgsnd: Resource temporarily unavailable'

I can't see any problem with my code. Also any time I get the error it wasn't because I exceeded the limit of messages
allowed on the queue.

Any help would be great!
Thanks

You must be logged in to post messages and see which you have already read.

Log on
Username:
Password:
Save for later automatic logon

Register as a new user
 
Copyright TPU 2002. See the Credits and About TPU for more information.