mercurial/commandserver.py
changeset 41284 b0e3f2d7c143
parent 40999 dcac24ec935b
child 43076 2372284d9457
--- a/mercurial/commandserver.py	Thu Jan 10 21:29:24 2019 +0900
+++ b/mercurial/commandserver.py	Wed Sep 26 21:29:13 2018 +0900
@@ -399,7 +399,7 @@
         ui = self.ui
         # redirect stdio to null device so that broken extensions or in-process
         # hooks will never cause corruption of channel protocol.
-        with procutil.protectedstdio(ui.fin, ui.fout) as (fin, fout):
+        with ui.protectedfinout() as (fin, fout):
             sv = server(ui, self.repo, fin, fout)
             try:
                 return sv.serve()