chickadee » posix-semaphore » create-sem

create-sem name value #!key (open-flags o/creat) (mode 644)procedure

Uses sem-open/mode to open or create a new semaphore, defaulting to creating. If doing so failed then it will unlink the name and return false. If doing so succeeded then it sets a finalizer that closes and unlinks the semaphore, and returns the new semaphore.