| Summary: | [sysvipc] POSIX semaphores don't work by default in 5.3-STABLE | ||
|---|---|---|---|
| Product: | Documentation | Reporter: | Vsevolod Stakhov <vsevolod> |
| Component: | Books & Articles | Assignee: | Tom Rhodes <trhodes> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | Latest | ||
| Hardware: | Any | ||
| OS: | Any | ||
Responsible Changed From-To: freebsd-doc->phantom In progress State Changed From-To: open->feedback Is this still true in 5.5-PRERELEASE? Responsible Changed From-To: phantom->freebsd-doc Reassign from phantom since he has been inactive for more than one year. Hat: gnats-admin State Changed From-To: feedback->analyzed It does appear sem was disconnected from the build four years ago by alfred for an unknown reason. I'll looking into this in phantom's place. Thanks! Responsible Changed From-To: freebsd-doc->trhodes Over to me. State Changed From-To: analyzed->closed Fixed awhile ago but will not be MFCed. Thanks! |
On 5.3-STABLE POSIX semaphores in kernel are not turned on by default as it is in 5.2.1. But there is nowhere mention about it. Also there is no any mention, that POSIX semaphores always work, when program is linked with pthreads. I think, that kernel option P1003_1B_SEMAPHORES and threads specific should be mentioned in sem_init (3). Fix: Note about it in man pages. How-To-Repeat: #include <semaphore.h> int main() { static sem_t sem; sem_init(&sem, 0, 1); return 0; } ksem_init(0xbfbfe788,0x1) ERR#78 'Function not implemented' And while linking with pthread all works fine.