➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 aronacher
收信人 aronacher, loewis, ned.deily
日期 2010-09-16.12:05:58
SpamBayes Score 3.374625e-06
Marked as misclassified 否
Message-id <1284638761.25.0.0187783684302.issue9867@psf.upfronthosting.co.za>
In-reply-to
内容
> Hmm. So under what conditions should it continue, and under what 
> conditions should it raise an exception (when errno is EINTR)?

EINTR indicates a temporary failure.  In that case it should always retry.

A common macro for handling that might look like this:

#define RETRY_ON_EINTR(x) ({ \
  typeof(x) rv; \
  do { rv = x; } while (rv < 0 && errno == EINTR); \
  rv;\
})

But from what I understand, braces in parentheses are a GCC extension.
历史
日期 用户 动作 参数
2010-09-16 12:06:01aronacher修改recipients: + aronacher, loewis, ned.deily
2010-09-16 12:06:01aronacher修改messageid: <1284638761.25.0.0187783684302.issue9867@psf.upfronthosting.co.za>
2010-09-16 12:05:59aronacher链接issue9867 messages
2010-09-16 12:05:58aronacher创建