[llvm] [llvm][Support] Add support for executing a detached process (PR #81708)
Alexandre Ganea via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 14 13:33:15 PST 2024
================
@@ -284,6 +285,8 @@ static bool Execute(ProcessInfo &PI, StringRef Program,
unsigned CreateFlags = CREATE_UNICODE_ENVIRONMENT;
if (AffinityMask)
CreateFlags |= CREATE_SUSPENDED;
+ if (DetachProcess)
+ CreateFlags |= DETACHED_PROCESS;
----------------
aganea wrote:
Understood, SGTM.
https://github.com/llvm/llvm-project/pull/81708
More information about the llvm-commits
mailing list