From 86f6f179dbf18c3a71e2c7479780f997c32e6994 Mon Sep 17 00:00:00 2001 From: davidpanderson Date: Mon, 8 Jan 2024 15:14:44 -0800 Subject: [PATCH] Win build fix --- samples/wrapper/wrapper.cpp | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/samples/wrapper/wrapper.cpp b/samples/wrapper/wrapper.cpp index 9c1472a8de..f39c54a270 100644 --- a/samples/wrapper/wrapper.cpp +++ b/samples/wrapper/wrapper.cpp @@ -1001,15 +1001,26 @@ void TASK::kill() { kill_descendants(pid); #endif } - +#ifdef _WIN32 +void TASK::stop() { + if (multi_process) { + suspend_or_resume_descendants(false); + } else { + suspend_or_resume_process(pid, false); + } + suspended = true; +} +#else void TASK::stop() { if (multi_process) { suspend_or_resume_descendants(false, use_tstp); - } else { + } + else { suspend_or_resume_process(pid, false, use_tstp); } suspended = true; } +#endif void TASK::resume() { if (multi_process) {