Win build fix

This commit is contained in:
davidpanderson 2024-01-08 15:14:44 -08:00
parent b5e2f5814a
commit 86f6f179db
1 changed files with 13 additions and 2 deletions

View File

@ -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) {