-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
waitToSetLock can block but is an unsafe FFI import #310
Comments
@hsyl20 I'm not entirely sure what you're proposing. Can you open a PR? |
foreign import capi unsafe "HsBase.h fcntl"
c_fcntl_lock :: CInt -> CInt -> Ptr CFLock -> IO CInt It's an I don't know why |
Any opinions @Bodigrim @hs-viktor ? |
Another alternative: add a safety parameter to |
We should stop using the import from |
No CLC proposal required, a private foreign import in |
waitToSetLock
usesc_fcntl_lock
which is anunsafe
FFI import, but the call may block indefinitely.It was the root cause of https://gitlab.haskell.org/ghc/ghc/-/issues/15485 in GHC <= 9.0
This is related to #34 but this particular call should be uncontroversial to fix (I think).
The text was updated successfully, but these errors were encountered: