优化代码,去除编译警告,修复拼写错误

This commit is contained in:
ziyue
2022-08-08 17:36:07 +08:00
parent 9c3b8a6a95
commit 35791aac89
11 changed files with 57 additions and 44 deletions

View File

@@ -29,10 +29,12 @@ public:
bool wait(bool block = true);
int exit_code();
private:
int _exit_code = 0;
pid_t _pid = -1;
void *_handle = nullptr;
void* _process_stack = nullptr;
int _exit_code = 0;
#if (defined(__linux) || defined(__linux__))
void *_process_stack = nullptr;
#endif
};