Update ptyDriver.py
This commit is contained in:
parent
c79cf97d2b
commit
4dc71060a1
@ -84,14 +84,14 @@ class driver(screenDriver):
|
|||||||
fdList = [fd]
|
fdList = [fd]
|
||||||
if interruptFd:
|
if interruptFd:
|
||||||
fdList += [interruptFd]
|
fdList += [interruptFd]
|
||||||
hasmore = True
|
while True:
|
||||||
while hasmore:
|
r = screen_utils.hasMoreWaht(fdList,0.1):
|
||||||
r, hasmore =screen_utils.hasMoreWaht(fdList,0.01):
|
hasmore = fd in r
|
||||||
if not hasmore:
|
if not hasmore:
|
||||||
break
|
break
|
||||||
# exit on stuff like input available
|
# exit on interrupt available
|
||||||
if interruptFd in r:
|
if interruptFd in r:
|
||||||
break
|
break
|
||||||
if (time.time() - starttime) >= timeout:
|
if (time.time() - starttime) >= timeout:
|
||||||
break
|
break
|
||||||
data = os.read(fd, 4096)
|
data = os.read(fd, 4096)
|
||||||
|
Loading…
Reference in New Issue
Block a user