Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 386760 Details for
Bug 525552
os.waitpid() may fail with EINTR, maybe others too
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
retry os calls upon EINTR
portage-eintr.patch (text/plain), 652 bytes, created by
Michael Haubenwallner (RETIRED)
on 2014-10-16 10:05:46 UTC
(
hide
)
Description:
retry os calls upon EINTR
Filename:
MIME Type:
Creator:
Michael Haubenwallner (RETIRED)
Created:
2014-10-16 10:05:46 UTC
Size:
652 bytes
patch
obsolete
>diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py >index 66bfeb0..bf45c24 100644 >--- a/pym/portage/__init__.py >+++ b/pym/portage/__init__.py >@@ -256,7 +256,13 @@ class _unicode_func_wrapper(object): > encoding = self._encoding > wrapped_args, wrapped_kwargs = self._process_args(args, kwargs) > >- rval = self._func(*wrapped_args, **wrapped_kwargs) >+ while True: >+ try: >+ rval = self._func(*wrapped_args, **wrapped_kwargs) >+ break >+ except OSError as e: >+ if e.errno != errno.EINTR: >+ raise > > # Don't use isinstance() since we don't want to convert subclasses > # of tuple such as posix.stat_result in Python >=3.2.
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 525552
: 386760