Skip to content

Bindings for POSIX named semaphores and shared memory objects

I've written a patch for libraries/unix adding support for POSIX named semaphores and shared memory objects. It's a straightforward wrapper around the POSIX system calls, basically just converting between C types and Haskell types and closing semaphores when they get garbage-collected.

I don't plan to implement unnamed semaphores because Control.Concurrent already has perfectly good support for that. Named semaphores, on the other hand, are for IPC, and there's no other alternative if that's what the process on the other end is expecting.

The patch is here: http://www.haskell.org/pipermail/libraries/attachments/20070503/507f7e6c/attachment-0001.bin

Trac metadata
Trac field Value
Version 6.7
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component libraries/unix
Test case
Differential revisions
BlockedBy
Related
Blocking
CC nonce+haskell.org@dfranke.us
Operating system Multiple
Architecture Multiple
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information