Ticket #6200 (closed Patches: fixed)
patch to have condition_variable and mutex error better handle EINTR
|Reported by:||blentz@…||Owned by:||viboes|
|Version:||Boost Development Trunk||Severity:||Problem|
|Keywords:||1.49 thread mutex eintr phusion passenger||Cc:||viboes|
On some flavors of Linux, for some versions of the pthread library, there are cases where it erroneously sends EINTR. This is a violation of POSIX, but it exists on some customer's production machines.
BOOST_VERIFY aborts on EINTR, but EINTR is usually not fatal, it just means you need to try later. Being that this behavior was found in production, I believe that it would be valuable to have Boost help protect downstream consumers from bad threading library behavior. This allows downstream consumers of Boost to not need to continuously rediscover and re-patch for this same bug.
So, with this in mind, attached is a proposed patch to allow condition_variable and mutex to better handle interacting with this potentially broken threading library behavior.
- Cc viboes added
- Keywords 1.49 added
- Status changed from new to assigned
- Owner changed from anthonyw to viboes
- Milestone changed from To Be Determined to Boost 1.49.0