Reputation: 79467
I've built a small example that uses msgsnd and msgrcv, but sometimes msgrcv()
returns
E2BIG
, and I'm not sure why that is, since I pass is the same msgsz
to both msgsnd()
and msgrcv()
.
Upvotes: 1
Views: 1373
Reputation: 79467
I hand't realized that a named queue is persistent between runs, and msgrcv()
was trying to read messages from the queue posted by previous runs of my application, which had been compiled with a larger msgsz
at the time.
Upvotes: 2