hello, hackers.
I use following line to recive message from message queue:
int ret;
ret = msgrcv(msgid, msg, sizeof(msg), 0, IPC_NOWAIT) if (ret == -1) {
if (errno == EAGAIN){
// no message in queue
}
else{
// here is an error occur
}
}
but it sounds not works as
In the last episode (May 07), ChenMing said:
I use following line to recive message from message queue:
int ret;
ret = msgrcv(msgid, msg, sizeof(msg), 0, IPC_NOWAIT) if (ret == -1) {
if (errno == EAGAIN){
// no message in queue
}
else{
// here is an error
2 matches
Mail list logo