1
0
mirror of https://github.com/falk-werner/webfuse synced 2024-10-27 20:34:10 +00:00
falk-werner_webfuse/test-src/webfuse/test/process.hpp
2022-12-31 20:41:45 +01:00

30 lines
489 B
C++

#ifndef WEBFUSE_PROCESS_HPP
#define WEBFUSE_PROCESS_HPP
#include <unistd.h>
#include <string>
#include <vector>
namespace webfuse
{
class process
{
process(process const &) = delete;
process operator=(process const &) = delete;
process(process &&) = delete;
process operator=(process &&) = delete;
public:
process(std::vector<std::string> const & commandline);
~process();
void kill(int signal_number);
int wait();
private:
pid_t pid;
};
}
#endif