Re: Message Queue.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux