HORIZON HASKELLDocslts/ghc-10.0.x8174fa42026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8174fa4 · 2026-10-11

Modulesemaphore-compat-2.0.1Haskell2010

System.Semaphore.Internal.DomainSocket

FFI glue code for Unix domain sockets.

  • 1 type
  • 6 values

Block until either a client connects or the cancel fd is written to.

Relies on cooperative cancellation implemented in hs_poll_accept using poll(2) + accept(2) via safe FFI to avoid GHC #27110 and #27113.

Must be called from a masked context. The caller is responsible for installing an exception handler that closes all 3 fds (inputs and outputs).

valuefdShutdown :: Fd -> IO ()
#

Shut down a socket for both reading and writing. A concurrent fdReadByte on the same fd will return immediately Used to cancel threads blocked in read()