blob: 02b9e7e2fb0ef3b3e063fb799b78947f33893352 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#pragma once
#include "../../PreConfig.h"
#ifdef CRU_PLATFORM_UNIX
#include "../../SubProcess.h"
#include <spawn.h>
namespace cru::platform::unix {
class PosixSpawnSubProcess : public PlatformSubProcessBase {
public:
explicit PosixSpawnSubProcess(const PlatformSubProcessStartInfo& start_info);
~PosixSpawnSubProcess();
private:
pid_t pid_;
int exit_code_;
};
} // namespace cru::platform::unix
#endif
|