Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Cortell2009-07-09 19:30:28 +0000
committerJohn Cortell2009-07-09 19:30:28 +0000
commit24b07e23d709dd8f46283266394ab81253f45467 (patch)
treeb83caf9d8377adb5783f856c376cc8cfe1a0a09d /core/org.eclipse.cdt.core.win32
parent08c17094e8a2616b182fdb3bff7c3a3c9c04f9f3 (diff)
downloadorg.eclipse.cdt-24b07e23d709dd8f46283266394ab81253f45467.tar.gz
org.eclipse.cdt-24b07e23d709dd8f46283266394ab81253f45467.tar.xz
org.eclipse.cdt-24b07e23d709dd8f46283266394ab81253f45467.zip
Bugzilla 282943. Don't use PulseEvent; Microsoft says it's unreliable. Someone looking at the code at Freescale saw its use in the code and raised a flag. This change is proactive; no problematic behavior was actually observed. See http://msdn.microsoft.com/en-us/library/ms684914(VS.85).aspx
Diffstat (limited to 'core/org.eclipse.cdt.core.win32')
-rw-r--r--core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c b/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c
index 31ae73c146c..6339128cf1a 100644
--- a/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c
+++ b/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c
@@ -221,7 +221,7 @@ JNIEXPORT jint JNICALL Java_org_eclipse_cdt_utils_spawner_Spawner_exec0
swprintf(eventTerminateName, L"SATerm%p", pCurProcInfo);
swprintf(eventKillName, L"SAKill%p", pCurProcInfo);
- pCurProcInfo->eventBreak = CreateEventW(NULL, TRUE, FALSE, eventBreakName);
+ pCurProcInfo->eventBreak = CreateEventW(NULL, FALSE, FALSE, eventBreakName);
pCurProcInfo->eventWait = CreateEventW(NULL, TRUE, FALSE, eventWaitName);
pCurProcInfo->eventTerminate = CreateEventW(NULL, FALSE, FALSE, eventTerminateName);
pCurProcInfo->eventKill = CreateEventW(NULL, FALSE, FALSE, eventKillName);
@@ -696,7 +696,7 @@ JNIEXPORT jint JNICALL Java_org_eclipse_cdt_utils_spawner_Spawner_raise
break;
case SIG_INT:
ResetEvent(pCurProcInfo -> eventWait);
- PulseEvent(pCurProcInfo -> eventBreak);
+ SetEvent(pCurProcInfo -> eventBreak);
ret = (WaitForSingleObject(pCurProcInfo -> eventWait, 100) == WAIT_OBJECT_0);
break;
default:

Back to the top