Commit cca34b9c authored by AndreasVoellmy's avatar AndreasVoellmy Committed by tibbe

Avoid use of backend modifyFdOnce in Poll backend in unregisterFd_.

parent de9b01b7
......@@ -330,9 +330,12 @@ unregisterFd_ mgr@(EventManager{..}) (FdKey fd u) =
(Just prev, newm) -> (newm, pairEvents prev newm fd')
modify = oldEvs /= newEvs
when modify $
#if defined(HAVE_EPOLL) || defined(HAVE_KQUEUE)
if emOneShot && newEvs /= mempty
then I.modifyFdOnce emBackend fd newEvs
else I.modifyFd emBackend fd oldEvs newEvs
else
#endif
I.modifyFd emBackend fd oldEvs newEvs
return (newMap, modify)
-- | Drop a previous file descriptor registration.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment