summaryrefslogtreecommitdiff
path: root/docs/users_guide/exts/instances.rst
diff options
context:
space:
mode:
authorDouglas Wilson <douglas.wilson@gmail.com>2022-06-17 13:54:48 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-08-10 06:01:53 -0400
commit7589ee7241d46b393979d98d4ded17a15ee974fb (patch)
tree3b7fc1fdab2df5bbc15a0ccf813fef03c8b9d3e0 /docs/users_guide/exts/instances.rst
parent76b52cf0c52ee05c20f7d1b80f5600eecab3c42a (diff)
downloadhaskell-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