[PATCH 1 of 2] win32: specify _CREATE_NO_WINDOW on spawndetached()

Patrick Mézard patrick at mezard.eu
Mon Jun 25 13:30:23 CDT 2012


Le 25/06/12 19:46, Adrian Buehlmann a écrit :
> # HG changeset patch
> # User Adrian Buehlmann <adrian at cadifra.com>
> # Date 1340644289 -7200
> # Node ID 3f2656c03b08bfa04519534db67ac6a0ae69d77d
> # Parent  9ab2624815a9facb1e581fd07fa81fe852b769ec
> win32: specify _CREATE_NO_WINDOW on spawndetached()
> 
> Before this change, a console window briefly popped up on "hg serve -d" and
> disappeared again, stealing the focus window (which was very annyoing when
> running tests).
> 
> Specifying _CREATE_NO_WINDOW instead of _DETACHED_PROCESS fixes this (as tested
> on Windows 7 x64).

+1

Seems to work on my old WinXP, python 2.6 32-bits.
--
Patrick Mézard


More information about the Mercurial-devel mailing list