Skip to content
Open
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
11 changes: 11 additions & 0 deletions subprocess.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1130,6 +1130,17 @@ class Popen
if (!defer_process_start_) execute_process();
}

template <typename... Args>
Popen(std::vector<std::string> vargs_, Args&& ...args):vargs_(vargs_)
{
init_args(std::forward<Args>(args)...);

// Setup the communication channels of the Popen class
stream_.setup_comm_channels();

if (!defer_process_start_) execute_process();
}

void start_process() noexcept(false);

int pid() const noexcept { return child_pid_; }
Expand Down