##// 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 class chgcmdserver(commandserver.server)
456 456 os.umask(mask)
457 457
458 458 def runcommand(self):
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:
459 465 return super(chgcmdserver, self).runcommand()
466 finally:
467 self._restoreio()
468 self._oldios = globaloldios
460 469
461 470 def setenv(self):
462 471 """Clear and update os.environ
General Comments 0
You need to be logged in to leave comments. Login now