Mercurial > hg
diff mercurial/server.py @ 37119:d4a2e0d5d042
procutil: bulk-replace util.std* to point to new module
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 24 Mar 2018 15:09:33 +0900 |
parents | bfcd0d227972 |
children | a8a902d7176e |
line wrap: on
line diff
--- a/mercurial/server.py Sat Mar 24 13:38:04 2018 +0900 +++ b/mercurial/server.py Sat Mar 24 15:09:33 2018 +0900 @@ -22,6 +22,10 @@ util, ) +from .utils import ( + procutil, +) + def runservice(opts, parentfn=None, initfn=None, runfn=None, logfile=None, runargs=None, appendpid=False): '''Run a command as a service.''' @@ -87,8 +91,8 @@ raise error.Abort(_('invalid value for --daemon-postexec: %s') % inst) util.hidewindow() - util.stdout.flush() - util.stderr.flush() + procutil.stdout.flush() + procutil.stderr.flush() nullfd = os.open(os.devnull, os.O_RDWR) logfilefd = nullfd