diff options
author | Ben Gamari <ben@smart-cactus.org> | 2020-01-30 10:25:57 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2020-02-14 10:16:59 -0500 |
commit | 798d59f6a2b517db50ec2536a8331d610a2b379c (patch) | |
tree | 975d8bebe3f171938666dc9b46ef7c17b262c4c2 /rts/win32/AsyncIO.c | |
parent | 149e2a3a85d92b4afea1643e7e6ed7861d620be2 (diff) | |
download | haskell-798d59f6a2b517db50ec2536a8331d610a2b379c.tar.gz |
rts: Add more debug output to failed path in onIOComplete
This will help track down #17035.
Diffstat (limited to 'rts/win32/AsyncIO.c')
-rw-r--r-- | rts/win32/AsyncIO.c | 5 |
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; } |