Skip to content

Commit

Permalink
creation-flags fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
klemens-morgenstern committed Sep 12, 2023
1 parent e7d2145 commit 15605c0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion include/boost/process/v2/windows/creation_flags.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 15605c0

Please sign in to comment.