diff options
author | Roland Reichwein <mail@reichwein.it> | 2023-01-12 20:00:40 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2023-01-12 20:00:40 +0100 |
commit | 702d32b41c1c4f496dba046c2017cb5b907e55cd (patch) | |
tree | 271a48cc1dc9ef1d2fcc846ed4bebbcdd24242e2 /tests/webserverprocess.h | |
parent | 124646fe2a31b7211d12fb043fcb760cbe7313b0 (diff) |
FCGI test
Diffstat (limited to 'tests/webserverprocess.h')
-rw-r--r-- | tests/webserverprocess.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/webserverprocess.h b/tests/webserverprocess.h new file mode 100644 index 0000000..5593c70 --- /dev/null +++ b/tests/webserverprocess.h @@ -0,0 +1,30 @@ +#pragma once + +#include <string> + +#include <ext/stdio_filebuf.h> +#include <signal.h> +#include <sys/wait.h> +#include <unistd.h> +#include <sys/mman.h> +#include <sys/types.h> + +class WebserverProcess +{ +private: + void init(const std::string& config); +public: + WebserverProcess(const std::string& config); + WebserverProcess(); + ~WebserverProcess(); + void start(); + void stop(); + bool is_running(); + std::string output(); + +private: + pid_t m_pid; + std::string m_config; + +}; // class WebserverProcess + |