Reputation: 130
I receive msgsnd: Invalid argument error while using my program. Another thing i noted is that error do not occur if the file size is medium while it occurs when file size is slightly more. Is is due to memory overflow? If yes then what is the solution. Regards, Bhavin.
Upvotes: 1
Views: 5223
Reputation: 239041
msgsnd()
returns EINVAL
if the msgsz
parameter is greater than MSGMAX
(which is usually quite a small value, like 8192).
What msgsz
are you using?
Upvotes: 2