Message116545
| Author |
ronaldoussoren |
| Recipients |
Trundle, aronacher, benjamin.peterson, exarkun, loewis, ned.deily, pitrou, ronaldoussoren, stutzbach |
| Date |
2010年09月16日.13:29:15 |
| SpamBayes Score |
4.835183e-07 |
| Marked as misclassified |
No |
| Message-id |
<A4316CDD-917A-401A-87E1-5813BDD50ED4@mac.com> |
| In-reply-to |
<1284640723.99.0.661462476435.issue9867@psf.upfronthosting.co.za> |
| Content |
On 16 Sep, 2010, at 14:38, Armin Ronacher wrote:
>
> Armin Ronacher <armin.ronacher@active-4.com> added the comment:
>
> There is a funny story related to that though :)
>
> "BSD avoids EINTR entirely and provides a more convenient approach:
> to restart the interrupted primitive, instead of making it fail."
>
> BSD does, but the Mach/XNU kernel combo on OS X is not. Which is why all the shipped BSD tools have that bug, but if you run their GNU equivalents on OS X everything work as expected.
setting the SA_RESTART in the call to sigaction should work (on OSX HAVE_SIGACTION is defined), unless the manpage is lying.
Ronald |
|