Re: msgrcv without removing the message

2006-05-10 Thread Ori Idan
Gilad Ben-Yossef wrote: > 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

Re: msgrcv without removing the message

2006-05-10 Thread Amos Shapira
On 5/10/06, Ori Idan <[EMAIL PROTECTED]> wrote: I am afraid I can't since the system uses kernel 2.4.x is POSIX supported on kernel 2.4? Apparently not in the mainline but a little digging came up with that: http://homepage.mac.com/pwaechtler/mqueue.html (basic assumption when setting out to l

Re: msgrcv without removing the message

2006-05-09 Thread Gilad Ben-Yossef
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 que

Re: msgrcv without removing the message

2006-05-09 Thread Muli Ben-Yehuda
On Tue, May 09, 2006 at 04:17:24PM +0300, Omer Zak wrote: > 2. Might be acceptable in Ori's specific application (the sender process > being the top priority one, or sending both messages inside a locked > region). > 3. There are also two other suggestions. Ah, but I had no nit to pick with them

Re: msgrcv without removing the message

2006-05-09 Thread Omer Zak
On Tue, 2006-05-09 at 15:42 +0300, Muli Ben-Yehuda wrote: > On Tue, May 09, 2006 at 03:24:02PM +0300, Omer Zak wrote: > > On Tue, 2006-05-09 at 14:53 +0300, 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

Re: msgrcv without removing the message

2006-05-09 Thread Muli Ben-Yehuda
On Tue, May 09, 2006 at 03:24:02PM +0300, Omer Zak wrote: > On Tue, 2006-05-09 at 14:53 +0300, 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

Re: msgrcv without removing the message

2006-05-09 Thread Muli Ben-Yehuda
On Tue, May 09, 2006 at 02:53:27PM +0300, 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 no

Re: msgrcv without removing the message

2006-05-09 Thread Omer Zak
On Tue, 2006-05-09 at 14:53 +0300, 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 t

msgrcv without removing the message

2006-05-09 Thread Ori Idan
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. -- Ori Idan