summaryrefslogtreecommitdiff
path: root/rts/win32
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2009-03-11 09:42:08 +0000
committerSimon Marlow <marlowsd@gmail.com>2009-03-11 09:42:08 +0000
commit29fd0a47007971cd7def0d778faf3f5abb893d31 (patch)
tree62a9b515d8aaad0eaa02c4c9607e3648fea6a18f /rts/win32
parent0b2bbce85ae2fc9ca99d9b98be57eb9a82c053fa (diff)
downloadhaskell-29fd0a47007971cd7def0d778faf3f5abb893d31.tar.gz
Fix #2992: don't create a named event
Evidently I misread the docs for CreateEvent: if you pass a name to CreateEvent, then it creates a single shared system-wide Event with that name. So all Haskell processes on the machine were sharing the same Event object. duh.
Diffstat (limited to 'rts/win32')
-rw-r--r--rts/win32/ThrIOManager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/win32/ThrIOManager.c b/rts/win32/ThrIOManager.c
index e2310ef9f3..c52928c3a2 100644
--- a/rts/win32/ThrIOManager.c
+++ b/rts/win32/ThrIOManager.c
@@ -34,7 +34,7 @@ getIOManagerEvent (void)
hRes = CreateEvent ( NULL, // no security attrs
TRUE, // manual reset
FALSE, // initial state,
- "IO Manager Event" );
+ NULL ); // event name: NULL for private events
if (hRes == NULL) {
sysErrorBelch("getIOManagerEvent");
stg_exit(EXIT_FAILURE);