X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=compat%2Fmingw.c;h=b534a8a4725617a3711c1ac4e2cc1883814b4684;hb=3fdd37fe1520765d1d207737ab65415e3d2ca174;hp=09858f6c593d9a8301c857c81e09bfa24b955eac;hpb=f6576f4c0c6fa3b2d979faf28936c09480dedaab;p=git.git diff --git a/compat/mingw.c b/compat/mingw.c index 09858f6c5..b534a8a47 100644 --- a/compat/mingw.c +++ b/compat/mingw.c @@ -536,12 +536,16 @@ static pid_t mingw_spawnve(const char *cmd, const char **argv, char **env, * would normally create a console window. But * since we'll be redirecting std streams, we do * not need the console. + * It is necessary to use DETACHED_PROCESS + * instead of CREATE_NO_WINDOW to make ssh + * recognize that it has no console. */ - flags = CREATE_NO_WINDOW; + flags = DETACHED_PROCESS; } else { /* There is already a console. If we specified - * CREATE_NO_WINDOW here, too, Windows would + * DETACHED_PROCESS here, too, Windows would * disassociate the child from the console. + * The same is true for CREATE_NO_WINDOW. * Go figure! */ flags = 0;