Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 70adc6e

Browse files
committed
fix: terminate process windows
1 parent 1e99861 commit 70adc6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

engine/utils/process/utils.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ bool KillProcess(ProcessInfo& proc_info) {
347347
bool success;
348348

349349
#if defined(_WIN32)
350-
success = TerminateJobObject(proc_info.hJob, 0) == 0;
350+
success = TerminateJobObject(proc_info.hJob, 0);
351351
#elif defined(__APPLE__) || defined(__linux__)
352352
// we send SIGTERM to subprocess. we trust that this subprocess will
353353
// propagate SIGTERM correctly to its children processes.

0 commit comments

Comments
 (0)