hgext/logtoprocess.py
changeset 34645 75979c8d4572
parent 34640 68ed3b4f86ef
child 35063 52790352dd05
equal deleted inserted replaced
34644:c0a6c19690ff 34645:75979c8d4572
    49 # be specifying the version(s) of Mercurial they are tested with, or
    49 # be specifying the version(s) of Mercurial they are tested with, or
    50 # leave the attribute unspecified.
    50 # leave the attribute unspecified.
    51 testedwith = 'ships-with-hg-core'
    51 testedwith = 'ships-with-hg-core'
    52 
    52 
    53 def uisetup(ui):
    53 def uisetup(ui):
    54     if pycompat.osname == 'nt':
    54     if pycompat.iswindows:
    55         # no fork on Windows, but we can create a detached process
    55         # no fork on Windows, but we can create a detached process
    56         # https://msdn.microsoft.com/en-us/library/windows/desktop/ms684863.aspx
    56         # https://msdn.microsoft.com/en-us/library/windows/desktop/ms684863.aspx
    57         # No stdlib constant exists for this value
    57         # No stdlib constant exists for this value
    58         DETACHED_PROCESS = 0x00000008
    58         DETACHED_PROCESS = 0x00000008
    59         _creationflags = DETACHED_PROCESS | subprocess.CREATE_NEW_PROCESS_GROUP
    59         _creationflags = DETACHED_PROCESS | subprocess.CREATE_NEW_PROCESS_GROUP