diff options
author | Douglas Wilson <douglas.wilson@gmail.com> | 2022-06-17 13:54:48 +0100 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2022-08-10 06:01:53 -0400 |
commit | 7589ee7241d46b393979d98d4ded17a15ee974fb (patch) | |
tree | 3b7fc1fdab2df5bbc15a0ccf813fef03c8b9d3e0 /docs/users_guide/exts/instances.rst | |
parent | 76b52cf0c52ee05c20f7d1b80f5600eecab3c42a (diff) | |
download | haskell-7589ee7241d46b393979d98d4ded17a15ee974fb.tar.gz |
base: Fix races in IOManager (setNumCapabilities,closeFdWith)
Fix for #21651
Fixes three bugs:
- writes to eventManager should be atomic. It is accessed concurrently by ioManagerCapabilitiesChanged and closeFdWith.
- The race in closeFdWith described in the ticket.
- A race in getSystemEventManager where it accesses the 'IOArray' in
'eventManager' before 'ioManagerCapabilitiesChanged' has written to
'eventManager', causing an Array Index exception. The fix here is to
'yield' and retry.
Diffstat (limited to 'docs/users_guide/exts/instances.rst')
0 files changed, 0 insertions, 0 deletions