[MERGE][#314247] Quick attempt at adding some EINTR-proofing to smart protocol code.

Andrew Bennetts andrew at canonical.com
Wed Jan 7 02:28:28 GMT 2009


I saw <https://bugs.launchpad.net/bugs/314247>, which includes some failures due
to EINTR occuring during recv calls.  This patch just tries to compensate for
that, and fixes osutils.sendall the same way.

The new osutils.until_no_eintr function in this patch is taken verbatim from
Twisted's twisted.python.util.untilConcludes function.  Twisted is
MIT-licensed, although the function is nearly trivial.

-Andrew.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: eintr-safety-3924.patch
Type: text/x-diff
Size: 4488 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20090107/4523e79d/attachment-0001.bin 


More information about the bazaar mailing list