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:
parent
53401bd882
commit
88b8b95e19
1 changed files with 5 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue