Boost logo

Boost :

Subject: [boost] [thread] [rfc] patch to change condition_variable and mutex error checks
From: Brett Lentz (blentz_at_[hidden])
Date: 2011-11-30 15:42:56


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Patch is attached.

I'd like to get some comments about this patch. Does it seem
reasonable enough to accept? Is there a better way to handle it?

BOOST_VERIFY aborts on EINTR, but EINTR is usually not fatal, it just
means you need to try later.

So, the attached patch makes it so that the condition_variable and
mutex error checks retry on EINTR, but will still fail on any other
error.

This issue was uncovered on one of Phusion Passenger's customers'
production systems.

- --

- ---Brett.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJO1pVQAAoJEEAzW/nB31+3CgMIAMPYRMvuuYWdHbmWF7qWt13i
pKRLGDjT5fT75SzVdcmwFNJLlboaP5tNi8g89Kw+iS+jjghEbyZr2Zx6BdCL67ne
+XtA1DqlmNHD3GZiLMlQDdPqbV7qliqj4d7+8xXqXnivxULYPwQMzW1XXY8Cs4Ys
uHBK/NrvZM+/LL2umHSCOLbKz7AEli6tSzuUyw557ubp42UPnE+gc+mUb7QYmcgW
BKzizZ03s+V4qJA/B+N4Ux8RvvhWgNLXnYoC958mzvnTwaTbdGfEmzVkKaWucI50
jsEzfejn/Gru2BNeC2MwVmecxmkHugoXxvVUYIH4PaDET96BM3ihHWV+4SLg7ik=
=xkyz
-----END PGP SIGNATURE-----




Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk