Chat on IRC |
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
Register as a new user | |||