7 #ifndef __LIBCAMERA_INTERNAL_PROCESS_H__
8 #define __LIBCAMERA_INTERNAL_PROCESS_H__
29 int start(
const std::string &path,
30 const std::vector<std::string> &args = std::vector<std::string>(),
31 const std::vector<int> &fds = std::vector<int>());
41 void closeAllFdsExcept(
const std::vector<int> &fds);
43 void died(
int wstatus);
Manager of processes.
Definition: process.cpp:45
Process object.
Definition: process.h:18
void kill()
Kill the process.
Definition: process.cpp:374
int exitCode() const
Retrieve the exit code of the process.
Definition: process.h:34
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:244
ExitStatus
Exit status of process.
Definition: process.h:20
@ NormalExit
Definition: process.h:22
@ NotExited
Definition: process.h:21
@ SignalExit
Definition: process.h:23
Signal< Process *, enum ExitStatus, int > finished
Definition: process.h:38
ExitStatus exitStatus() const
Retrieve the exit status of the process.
Definition: process.h:33
Generic signal and slot communication mechanism.
Definition: signal.h:39
File descriptor event notifier.