Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Leherbauer2015-09-15 10:44:07 +0000
committerAnton Leherbauer2015-09-15 10:44:07 +0000
commit88b8b95e1906392d4cc2c7dd40199aa40056a0e3 (patch)
treedfed29f89ac5d4d55a036d1598c9b7d4b92aa2d4
parent53401bd882f2c2754e5d55849b18101e0bdf7fc0 (diff)
downloadorg.eclipse.cdt-88b8b95e1906392d4cc2c7dd40199aa40056a0e3.tar.gz
org.eclipse.cdt-88b8b95e1906392d4cc2c7dd40199aa40056a0e3.tar.xz
org.eclipse.cdt-88b8b95e1906392d4cc2c7dd40199aa40056a0e3.zip
Follow-up on bug 476346: Make event names unique between multiple Eclipse instances
-rw-r--r--core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c b/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c
index d1988c171a5..c23bc32ae29 100644
--- a/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c
+++ b/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c
@@ -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)

Back to the top