Skip to content

Commit

Permalink
berkelyAccept: use uninterruptibleMask_ when closing a socket
Browse files Browse the repository at this point in the history
The resource handler for `bracketOnError` must be uninterruptible.
  • Loading branch information
coot committed Oct 14, 2021
1 parent 0dd1485 commit c779353
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -151,7 +151,7 @@ berkeleyAccept ioManager sock =
#else
(unmask $ Win32.Async.accept sock)
#endif
(Socket.close . fst)
(uninterruptibleMask_ . Socket.close . fst)
$ \(sock', addr') -> do
unmask $ associateWithIOManager ioManager (Right sock')

Expand Down

0 comments on commit c779353

Please sign in to comment.