reduce bytes
This commit is contained in:
parent
71a11fa2ee
commit
8aac2ad78c
@ -96,7 +96,7 @@ class driver(screenDriver):
|
|||||||
self.env['screen']['autoIgnoreScreens'] = []
|
self.env['screen']['autoIgnoreScreens'] = []
|
||||||
self.env['general']['prevUser'] = getpass.getuser()
|
self.env['general']['prevUser'] = getpass.getuser()
|
||||||
self.env['general']['currUser'] = getpass.getuser()
|
self.env['general']['currUser'] = getpass.getuser()
|
||||||
def readAll(self, fd, timeout = 9999999, interruptFd = None, len = 4096):
|
def readAll(self, fd, timeout = 9999999, interruptFd = None, len = 2048):
|
||||||
bytes = b''
|
bytes = b''
|
||||||
fdList = []
|
fdList = []
|
||||||
fdList += [fd]
|
fdList += [fd]
|
||||||
@ -182,7 +182,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.2, interruptFd=sys.stdin)
|
msgBytes = self.readAll(self.p_out.fileno(), timeout=0.1, interruptFd=sys.stdin)
|
||||||
except (EOFError, OSError):
|
except (EOFError, OSError):
|
||||||
active.value = False
|
active.value = False
|
||||||
break
|
break
|
||||||
|
Loading…
Reference in New Issue
Block a user