Skip to content

Commit 56e0de0

Browse files
committed
Merge branch '10.0' into 10.1
2 parents 1bb66ea + ae7b39a commit 56e0de0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

mysql-test/lib/My/SafeProcess/safe_process_win.cc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -357,14 +357,14 @@ int main(int argc, const char** argv )
357357
CloseHandle(job_handle);
358358
message("Job terminated and closed");
359359

360-
if (!jobobject_assigned)
361-
{
362-
GenerateConsoleCtrlEvent(CTRL_BREAK_EVENT, process_info.dwProcessId);
363-
TerminateProcess(process_info.hProcess, 202);
364-
}
360+
365361

366362
if (wait_res != WAIT_OBJECT_0 + CHILD)
367363
{
364+
if (!jobobject_assigned)
365+
{
366+
TerminateProcess(process_info.hProcess, 202);
367+
}
368368
/* The child has not yet returned, wait for it */
369369
message("waiting for child to exit");
370370
if ((wait_res= WaitForSingleObject(wait_handles[CHILD], INFINITE))

0 commit comments

Comments
 (0)