Loading mysql-test/lib/My/SafeProcess/safe_kill_win.cc +14 −1 Original line number Diff line number Diff line Loading @@ -49,6 +49,19 @@ int main(int argc, const char** argv ) while ((shutdown_event= OpenEvent(EVENT_MODIFY_STATE, FALSE, safe_process_name)) == NULL) { /* Check if the process is alive, otherwise there is really no idea to retry the open of the event */ HANDLE process; if ((process= OpenProcess(SYNCHRONIZE, FALSE, pid)) == NULL) { fprintf(stderr, "Could not open event or process %d, error: %d\n", pid, GetLastError()); exit(3); } CloseHandle(process); if (retry_open_event--) Sleep(100); else Loading Loading
mysql-test/lib/My/SafeProcess/safe_kill_win.cc +14 −1 Original line number Diff line number Diff line Loading @@ -49,6 +49,19 @@ int main(int argc, const char** argv ) while ((shutdown_event= OpenEvent(EVENT_MODIFY_STATE, FALSE, safe_process_name)) == NULL) { /* Check if the process is alive, otherwise there is really no idea to retry the open of the event */ HANDLE process; if ((process= OpenProcess(SYNCHRONIZE, FALSE, pid)) == NULL) { fprintf(stderr, "Could not open event or process %d, error: %d\n", pid, GetLastError()); exit(3); } CloseHandle(process); if (retry_open_event--) Sleep(100); else Loading