[master 7/9] Wrap the only non-open call found by the new pocketlint checks
dashea
installerbot-noreply at redhat.com
Thu Jun 18 21:03:53 UTC 2015
From: David Shea <dshea at redhat.com>
---
pyanaconda/ui/lib/entropy.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/pyanaconda/ui/lib/entropy.py b/pyanaconda/ui/lib/entropy.py
index c108480..59cf9da 100644
--- a/pyanaconda/ui/lib/entropy.py
+++ b/pyanaconda/ui/lib/entropy.py
@@ -33,6 +33,7 @@
from pyanaconda.progress import progress_message
from pyanaconda.constants import MAX_ENTROPY_WAIT
+from pyanaconda.iutil import eintr_retry_call
from pykickstart.constants import DISPLAY_MODE_GRAPHICAL
from blivet.util import get_current_entropy
@@ -117,7 +118,7 @@ def _tui_wait(msg, desired_entropy):
# and then just read everything from the input buffer and revert the
# termios state
data = "have something"
- while sys.stdin in select.select([sys.stdin], [], [], 0)[0] and data:
+ while sys.stdin in eintr_retry_call(select.select, [sys.stdin], [], [], 0)[0] and data:
# just read from stdin and scratch the read data
data = sys.stdin.read(1)
--
To view this commit on github, visit https://github.com/rhinstaller/anaconda/commit/b61053fe7fdde0641b4639669899f1e0a39490ec
More information about the anaconda-patches
mailing list