make stuf working

This commit is contained in:
chrys 2018-05-29 22:51:28 +02:00
parent 6c4cb6de1b
commit a53fe5cbb3

View File

@ -80,7 +80,7 @@ class driver(screenDriver):
if bytes == b'': if bytes == b'':
raise EOFError raise EOFError
# respect timeout but wait a little bit of time to see if something more is here # respect timeout but wait a little bit of time to see if something more is here
while screen_utils.hasMore(fd,0.01): while screen_utils.hasMore(fd,0.001):
# exit on stuff like input available # exit on stuff like input available
if interruptFdList: if interruptFdList:
r, _, _ = select.select(interruptFdList, [], [], 0) r, _, _ = select.select(interruptFdList, [], [], 0)
@ -156,7 +156,7 @@ class driver(screenDriver):
# output # output
if self.p_out in r: if self.p_out in r:
try: try:
msgBytes = self.readAll(self.p_out.fileno(), timeout=0.05, interruptFdList=[sys.stdin]) msgBytes = self.readAll(self.p_out.fileno(), timeout=0.02, interruptFdList=[sys.stdin])
except (EOFError, OSError): except (EOFError, OSError):
active.value = False active.value = False
break break