##// END OF EJS Templates
chgserver: restore pager fds attached within runcommand session...
Yuya Nishihara -
r39775:7cdd47d9 default
parent child Browse files
Show More
@@ -456,7 +456,16 b' class chgcmdserver(commandserver.server)'
456 os.umask(mask)
456 os.umask(mask)
457
457
458 def runcommand(self):
458 def runcommand(self):
459 return super(chgcmdserver, self).runcommand()
459 # pager may be attached within the runcommand session, which should
460 # be detached at the end of the session. otherwise the pager wouldn't
461 # receive EOF.
462 globaloldios = self._oldios
463 self._oldios = []
464 try:
465 return super(chgcmdserver, self).runcommand()
466 finally:
467 self._restoreio()
468 self._oldios = globaloldios
460
469
461 def setenv(self):
470 def setenv(self):
462 """Clear and update os.environ
471 """Clear and update os.environ
General Comments 0
You need to be logged in to leave comments. Login now