Message Queues
Kurt Wall
kwall
Fri Feb 3 21:52:52 PST 2006
On Thu, Feb 02, 2006 at 07:56:12PM -0700, Steve Jardine took 44 lines to write:
> SysV..
>
> On another note, when I am writing to a queue, another process sometimes reads
> it (msgget) before I have completed my write to the queue. As a result, the
> process reading the entry gets an incomplete entry. I know there must be a flag I
> am not setting correctly.
The typical procedure is to set a semaphore to guard access, although
it does seem perverse to use a mutex to control access to a message
queue.
Kurt
--
Bizarreness is the essence of the exotic
More information about the Linux-users
mailing list