We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1bb66ea + ae7b39a commit 56e0de0Copy full SHA for 56e0de0
mysql-test/lib/My/SafeProcess/safe_process_win.cc
@@ -357,14 +357,14 @@ int main(int argc, const char** argv )
357
CloseHandle(job_handle);
358
message("Job terminated and closed");
359
360
- if (!jobobject_assigned)
361
- {
362
- GenerateConsoleCtrlEvent(CTRL_BREAK_EVENT, process_info.dwProcessId);
363
- TerminateProcess(process_info.hProcess, 202);
364
- }
+
365
366
if (wait_res != WAIT_OBJECT_0 + CHILD)
367
{
+ if (!jobobject_assigned)
+ {
+ TerminateProcess(process_info.hProcess, 202);
+ }
368
/* The child has not yet returned, wait for it */
369
message("waiting for child to exit");
370
if ((wait_res= WaitForSingleObject(wait_handles[CHILD], INFINITE))
0 commit comments