Message116530
| Author |
aronacher |
| Recipients |
aronacher, loewis, ned.deily |
| Date |
2010年09月16日.12:05:58 |
| SpamBayes Score |
3.374625e-06 |
| Marked as misclassified |
No |
| Message-id |
<1284638761.25.0.0187783684302.issue9867@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
> 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. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2010年09月16日 12:06:01 | aronacher | set | recipients:
+ aronacher, loewis, ned.deily |
| 2010年09月16日 12:06:01 | aronacher | set | messageid: <1284638761.25.0.0187783684302.issue9867@psf.upfronthosting.co.za> |
| 2010年09月16日 12:05:59 | aronacher | link | issue9867 messages |
| 2010年09月16日 12:05:58 | aronacher | create |
|