Skip to content

#16916 and #16966 fix backport

Ivan Kasatenko requested to merge SkyWriter/ghc:fix/t16916-backport into ghc-8.8

Kqueue/kevent implementation used to ignore events to be unsubscribed from when events to be subscribed to were provided. This resulted in a lost notification subscription, when GHC runtime didn't listen for any events, yet the kernel considered otherwise and kept waking up the IO manager thread.

This MR fixes this issue by always adding and removing all of the provided subscriptions.

Backport of a fix for #16916 (closed) (and consequent #16966). Includes changes from !1428 (closed) and !1457 (merged).

Edited by Ivan Kasatenko

Merge request reports