comparison mercurial/cmdutil.py @ 10240:3af4b39afe2a

cmdutil: hide child window created by win32 spawndetached() Hiding the child process window is not strictly necessary but it avoids opening an empty shell window when running hg serve as well as a task in the task bar. The window is hidden after the process is already started causing a single flicker.
author Patrick Mezard <pmezard@gmail.com>
date Sun, 10 Jan 2010 18:13:34 +0100
parents 8e4be44a676f
children af24805aa37c
comparison
equal deleted inserted replaced
10239:8e4be44a676f 10240:3af4b39afe2a
611 try: 611 try:
612 os.setsid() 612 os.setsid()
613 except AttributeError: 613 except AttributeError:
614 pass 614 pass
615 os.unlink(lockpath) 615 os.unlink(lockpath)
616 util.hidewindow()
616 sys.stdout.flush() 617 sys.stdout.flush()
617 sys.stderr.flush() 618 sys.stderr.flush()
618 619
619 nullfd = os.open(util.nulldev, os.O_RDWR) 620 nullfd = os.open(util.nulldev, os.O_RDWR)
620 logfilefd = nullfd 621 logfilefd = nullfd