matil019 / haskell-libfuse3

A Haskell binding for libfuse-3.x
https://hackage.haskell.org/package/libfuse3
MIT License
5 stars 1 forks source link

Catch every exception thrown by FUSE methods in resCFuseOperations #7

Closed matil019 closed 4 years ago

matil019 commented 4 years ago

If the supplied exception handler ignores an exception, it is catched nonetheless and logged to prevent it from escaping to the C land (the caller is libfuse).

I consider this as a bug fix, not a behavior change. The reason is that propagating Haskell exceptions to the C land leads to undefined behavior, which is by no means justifiable.