29 lines
436 B
C
29 lines
436 B
C
|
#ifndef PROCESS_LAUNCHER_H
|
||
|
#define PROCESS_LAUNCHER_H
|
||
|
|
||
|
#ifdef _WIN32
|
||
|
#include <windows.h>
|
||
|
#else
|
||
|
#include <sys/types.h>
|
||
|
#include <sys/wait.h>
|
||
|
#include <unistd.h>
|
||
|
#endif
|
||
|
|
||
|
#include <string>
|
||
|
|
||
|
#include <unistd.h>
|
||
|
#include <fcntl.h>
|
||
|
#include <sys/stat.h>
|
||
|
|
||
|
|
||
|
class LogWriter {
|
||
|
public:
|
||
|
static int log_start_line(int pid);
|
||
|
|
||
|
|
||
|
|
||
|
private:
|
||
|
static int write_log(const std::string& log_line);
|
||
|
};
|
||
|
|
||
|
#endif // PROCESS_LAUNCHER_H
|