Skip to content

Named semaphore fixes

Jan Kiszka xenomai 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2cobalt/posix/sem: Fix semaphore leak on failing xnmallockernel/cobalt/posix/nsem.c+3 -10 replies
2/2cobalt/posix/sem: Fix sem_open for preexisting semaphoreskernel/cobalt/posix/nsem.c kernel/cobalt/posix/sem.c kernel/cobalt/posix/sem.h+28 -90 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Xenomai] [PATCH 0/2] Named semaphore fixes

This fixes the issue Tamas reported with pshared semaphores. Still, the code is complex and requires a careful review.

Eventually, some test case for pshared setups would be good. I don't think smokey can already provide the necessary infrastructure for that, though.

Jan

Jan Kiszka (2):
cobalt/posix/sem: Fix semaphore leak on failing xnmalloc cobalt/posix/sem: Fix sem_open for preexisting semaphores

 kernel/cobalt/posix/nsem.c | 15 ++++++++++-----
 kernel/cobalt/posix/sem.c  | 23 ++++++++++++++++++-----
 kernel/cobalt/posix/sem.h  |  3 +++
 3 files changed, 31 insertions(+), 10 deletions(-)
Signature · 1 line
2.13.6