Open Bug 1322391 Opened 9 years ago Updated 3 years ago

Enable POSIX named semaphores for FreeBSD

Categories

(NSPR :: NSPR, defect)

Unspecified
FreeBSD
defect

Tracking

(Not tracked)

People

(Reporter: jbeich, Unassigned)

References

()

Details

Attachments

(1 obsolete file)

Since FreeBSD 9.0 sem_open() works even without loading sem.ko. Anything below 9.3 is no longer supported by vendor while 9.x branch goes EOL in 2016-12-31.
Attached patch conservative fix (obsolete) — Splinter Review
Attachment #8817219 - Flags: review?(wtc)
Why _linux.h doesn't define _PR_HAVE_POSIX_SEMAPHORES ? Is NSPR is so bitrotten no one wants to touch _<platform>.h lest end up using unmaintained code ?
Comment on attachment 8817219 [details] [diff] [review] conservative fix Here are dragons: $ ./pr/tests/runtests.sh [...] sema FAILED semaerr FAILED semaerr: Opening nonexistent semaphore /tmp/nosuchsem.sem without the PR_SEM_CREATE flag should fail but succeeded semaping FAILED sem_open() tests in Apache Portable Runtime and Python's multiprocessing work fine.
Attachment #8817219 - Attachment is obsolete: true
Attachment #8817219 - Flags: review?(wtc)
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: