Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

threads get different errno as queue removed

Status
Not open for further replies.

mmque

Programmer
Nov 14, 2003
5
0
0
US
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?
 
What's your question?

"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.


--
 
I believe that when the queues are removed, the main thread then sends a EINTR signal to all other threads. Sounds like what is happening anyway.

Good Luck.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top