MCPcopy Create free account
hub / github.com/COVESA/vsomeip / Process

Method Process

test/common/src/external/process_unix.cpp:108–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106Process::Data::Data() noexcept : id(-1) { }
107
108Process::Process(const std::function<void()>& function, std::function<void(const char*, size_t)> read_stdout,
109 std::function<void(const char*, size_t)> read_stderr, bool open_stdin, const Config& config) :
110 closed(true), read_stdout(std::move(read_stdout)), read_stderr(std::move(read_stderr)), open_stdin(open_stdin), config(config) {
111 if (config.flatpak_spawn_host)
112 throw std::invalid_argument("Cannot break out of a flatpak sandbox with this overload.");
113 open(function);
114 async_read();
115}
116
117Process::id_type Process::open(const std::function<void()>& function) noexcept {
118 if (open_stdin)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected