[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 05:09:11 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:
I don't know for Unix, but on Windows this flag prevents the I/O streams to be open on process startup, so any attempt to use `llvm::outs` or `llvm::errs` will most likely fail. Is that the intent?
https://github.com/llvm/llvm-project/pull/81708
More information about the llvm-commits
mailing list