From b165ebcfb9c278dc7481abb5287e85672731c005 Mon Sep 17 00:00:00 2001 From: crupest Date: Sat, 1 Jun 2024 17:09:44 +0800 Subject: HALF WORK: finish implementing PosixSpawnSubProcess. --- include/cru/common/platform/unix/PosixSpawnSubProcess.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'include/cru/common/platform/unix/PosixSpawnSubProcess.h') diff --git a/include/cru/common/platform/unix/PosixSpawnSubProcess.h b/include/cru/common/platform/unix/PosixSpawnSubProcess.h index 9a08daa6..e8e23738 100644 --- a/include/cru/common/platform/unix/PosixSpawnSubProcess.h +++ b/include/cru/common/platform/unix/PosixSpawnSubProcess.h @@ -4,6 +4,7 @@ #ifdef CRU_PLATFORM_UNIX +#include "../../Base.h" #include "../../SubProcess.h" #include "../../io/AutoReadStream.h" @@ -14,8 +15,10 @@ namespace cru::platform::unix { class PosixSpawnSubProcess : public PlatformSubProcessBase { + CRU_DEFINE_CLASS_LOG_TAG(u"PosixSpawnSubProcess") + public: - explicit PosixSpawnSubProcess(const PlatformSubProcessStartInfo& start_info); + explicit PosixSpawnSubProcess(const SubProcessStartInfo& start_info); ~PosixSpawnSubProcess(); io::Stream* GetStdinStream() override; @@ -24,7 +27,7 @@ class PosixSpawnSubProcess : public PlatformSubProcessBase { protected: void PlatformCreateProcess() override; - PlatformSubProcessExitResult PlatformWaitForProcess() override; + SubProcessExitResult PlatformWaitForProcess() override; void PlatformKillProcess() override; private: -- cgit v1.2.3