Skip to content

Commit

Permalink
FdRc: use loggingExceptionSink
Browse files Browse the repository at this point in the history
  • Loading branch information
queezle42 committed Jan 23, 2024
1 parent 028e50c commit e81a1ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quasar-wayland/src/Quasar/Wayland/Utils/SharedFd.hs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ newSharedFd :: Fd -> IO SharedFd
newSharedFd fd = do
rc <- newFdRc fd
-- TODO
var <- newDisposableVarIO undefined (decRc closeFd (const (pure ()))) rc
var <- newDisposableVarIO loggingExceptionSink (decRc closeFd (const (pure ()))) rc
pure (SharedFd var ("Fd@" <> show fd))

-- | @withSharedFd fn sfd@ executes the computation @fn@, passing the underlying
Expand Down

0 comments on commit e81a1ce

Please sign in to comment.