summaryrefslogtreecommitdiff
path: root/rts
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2020-01-30 10:25:57 -0500
committerBen Gamari <ben@smart-cactus.org>2020-02-14 10:16:59 -0500
commit798d59f6a2b517db50ec2536a8331d610a2b379c (patch)
tree975d8bebe3f171938666dc9b46ef7c17b262c4c2 /rts
parent149e2a3a85d92b4afea1643e7e6ed7861d620be2 (diff)
downloadhaskell-798d59f6a2b517db50ec2536a8331d610a2b379c.tar.gz
rts: Add more debug output to failed path in onIOComplete
This will help track down #17035.
Diffstat (limited to 'rts')
-rw-r--r--rts/win32/AsyncIO.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/rts/win32/AsyncIO.c b/rts/win32/AsyncIO.c
index 3f1e9ed63e..49da79d2dd 100644
--- a/rts/win32/AsyncIO.c
+++ b/rts/win32/AsyncIO.c
@@ -67,12 +67,13 @@ onIOComplete(unsigned int reqID,
dwRes = WaitForSingleObject(completed_table_sema, INFINITE);
switch (dwRes) {
case WAIT_OBJECT_0:
+ case WAIT_ABANDONED:
break;
default:
/* Not likely */
fprintf(stderr,
- "onIOComplete: failed to grab table semaphore, "
- "dropping request 0x%x\n", reqID);
+ "onIOComplete: failed to grab table semaphore (res=%d, err=%d), "
+ "dropping request 0x%x\n", reqID, dwRes, GetLastError());
fflush(stderr);
return;
}