haskell / haskell/unix

waitToSetLock can block but is an unsafe FFI import

Open
#310 7 comments 0 reactions 0 assignees View on GitHub
status: needs triage type: bug
Dominant language
Haskell
Stars
124
Forks
99
PR merge metrics
No merged PRs in 30d

Description

`waitToSetLock` uses `c_fcntl_lock` which is an `unsafe` 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).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.