33 int start(
const std::string &path,
34 const std::vector<std::string> &args = std::vector<std::string>(),
35 const std::vector<int> &fds = std::vector<int>());
45 void closeAllFdsExcept(
const std::vector<int> &fds);
47 void died(
int wstatus);
63 void registerProcess(
Process *proc);
67 int writePipe()
const;
69 const struct sigaction &oldsa()
const;
76 std::list<Process *> processes_;
78 struct sigaction oldsa_;
Manager of processes.
Definition: process.h:57
Signal< enum ExitStatus, int > finished
Definition: process.h:42
File descriptor wrapper that owns a file descriptor.
int start(const std::string &path, const std::vector< std::string > &args=std::vector< std::string >(), const std::vector< int > &fds=std::vector< int >())
Fork and exec a process, and close fds.
Definition: process.cpp:239
Process object.
Definition: process.h:21
Top-level libcamera namespace.
Definition: backtrace.h:17
Signal & slot implementation.
unique_ptr-like wrapper for a file descriptor
Definition: unique_fd.h:17
void kill()
Kill the process.
Definition: process.cpp:371
Notify of activity on a file descriptor.
Definition: event_notifier.h:19
ExitStatus
Exit status of process.
Definition: process.h:24
ExitStatus exitStatus() const
Retrieve the exit status of the process.
Definition: process.h:37
int exitCode() const
Retrieve the exit code of the process.
Definition: process.h:38