1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-06 17:26:01 +02:00

Follow-up on bug 476346: Make event names unique between multiple Eclipse instances

This commit is contained in:
Anton Leherbauer 2015-09-15 12:44:07 +02:00
parent 53401bd882
commit 88b8b95e19

View file

@ -224,11 +224,11 @@ JNIEXPORT jint JNICALL Java_org_eclipse_cdt_utils_spawner_Spawner_exec0
}
// Construct starter's command line
swprintf(eventBreakName, L"SABreak%010i", nLocalCounter);
swprintf(eventWaitName, L"SAWait%010i", nLocalCounter);
swprintf(eventTerminateName, L"SATerm%010i", nLocalCounter);
swprintf(eventKillName, L"SAKill%010i", nLocalCounter);
swprintf(eventCtrlcName, L"SACtrlc%010i", nLocalCounter);
swprintf(eventBreakName, L"SABreak%04x%08x", pid, nLocalCounter);
swprintf(eventWaitName, L"SAWait%004x%08x", pid, nLocalCounter);
swprintf(eventTerminateName, L"SATerm%004x%08x", pid, nLocalCounter);
swprintf(eventKillName, L"SAKill%04x%08x", pid, nLocalCounter);
swprintf(eventCtrlcName, L"SACtrlc%04x%08x", pid, nLocalCounter);
pCurProcInfo->eventBreak = CreateEventW(NULL, FALSE, FALSE, eventBreakName);
if(NULL == pCurProcInfo->eventBreak || GetLastError() == ERROR_ALREADY_EXISTS)