Ori Idan wrote:
I need to sleep until a message is aviliable in a message queue.
I can do it using msgrcv, however it will remove the message from the queue.
Is there a way to do it without removing the message? I juast want to
wake up and not read the message yet.
Move to POSIX message queues instead of Sys V message queues and use
mq_notify():
http://www.die.net/doc/linux/man/man3/mq_notify.3.html
AFAIK POSIX message queues are supported in Linux circa 2.6.6 or some such.
Gilad
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]