mirror of
https://github.com/boostorg/process.git
synced 2026-01-19 04:22:15 +00:00
creation-flags fix.
This commit is contained in:
committed by
Klemens Morgenstern
parent
cf14d54343
commit
af47f4677c
@@ -31,14 +31,19 @@ struct process_creation_flags
|
||||
const filesystem::path &,
|
||||
const std::wstring &) const
|
||||
{
|
||||
launcher.startup_info.StartupInfo.dwFlags |= Flags;
|
||||
launcher.creation_flags |= Flags;
|
||||
return error_code {};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
||||
/// A flag to create a new process group. Necessary to allow interrupts for the subprocess.
|
||||
constexpr static process_creation_flags<CREATE_NEW_PROCESS_GROUP> create_new_process_group;
|
||||
|
||||
constexpr static process_creation_flags<CREATE_BREAKAWAY_FROM_JOB> create_breakaway_from_job;
|
||||
constexpr static process_creation_flags<CREATE_NEW_CONSOLE> create_new_console;
|
||||
|
||||
}
|
||||
BOOST_PROCESS_V2_END_NAMESPACE
|
||||
|
||||
|
||||
Reference in New Issue
Block a user