I removed queues for main thread $t1 and another thread $t2. They were reading (msgrcv) from two different queues. But, after the removal, the $t1 got error EIDRM while the thread $t2 got error EINTR. Why?
"Why am I getting errors?"
That's easy, you pulled the rug from under it's feet, and now it's fallen over.
"Why are the errors different?"
No idea.
What does your manual page say about EIDRM and EINTR.
What does your manual page on msgrcv() say about values of errno when it returns fail.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.