Do not duplicate the fds

This commit is contained in:
Ignacio Casal Quinteiro 2016-09-27 10:34:04 +02:00
parent 57f76a6d49
commit 30938ff514

View file

@ -138,9 +138,7 @@ gitg_platform_support_application_support_prepare_startup (void)
if (p_AttachConsole != NULL && p_AttachConsole (ATTACH_PARENT_PROCESS))
{
freopen ("CONOUT$", "w", stdout);
dup2 (fileno (stdout), 1);
freopen ("CONOUT$", "w", stderr);
dup2 (fileno (stderr), 2);
}
}
}