On 11-07-08 08:04, jelari wrote:
is there any API exists to check if the message is arrived in the
message queue, rather than retrieving the message?.. Checking the
existence of the message should not remove the message from message
queue. !
Yes, that's a bit of a standard trick. You can pass a NULL pointer and a
0 size to msgrcv() and if it fails with E2BIG, a message _would_ have
been returned had you supplied a large enough buffer.
Rene.
--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ