Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/Build/BackEnd/Components/Communications/NodeLauncher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,12 @@ private Process StartInternal(string msbuildLocation, string commandLineArgs)
startInfo.hStdInput = BackendNativeMethods.InvalidHandle;
startInfo.hStdOutput = BackendNativeMethods.InvalidHandle;
startInfo.dwFlags = BackendNativeMethods.STARTFUSESTDHANDLES;

creationFlags |= BackendNativeMethods.CREATENOWINDOW;

// Avoid spawning a conhost.exe process, since this node won't do console output
// even though Windows thinks of us as a "console process"
creationFlags |= BackendNativeMethods.DETACHED_PROCESS;
}
}
else
Expand Down
5 changes: 5 additions & 0 deletions src/Build/BackEnd/Node/NativeMethods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ internal static class NativeMethods
/// </summary>
internal const Int32 CREATE_NEW_CONSOLE = 0x00000010;

/// <summary>
/// For console processes, the new process does not inherit its parent's console (the default).
/// </summary>
internal const Int32 DETACHED_PROCESS = 0x00000008;

/// <summary>
/// Create a new process
/// </summary>
Expand Down
Loading