Opened 4 months ago

Closed 4 months ago

#18767 closed defect (invalid)

RTEMS 5 : sem_wait + sem_destroy behavior change

Reported by: emmamegan Owned by:
Priority: normal Milestone:
Component: build Version: 3.0.5
Keywords: Cc:
Blocked By: Blocking:
Patch: no

Description

Hello,
With previous versions of RTEMS:
a blocking sem_wait() could be broken immediately via a successful sem_destroy done from another thread (sem_wait deblocks with return code -1, and errno == EINVAL).
With latest RTEMS:
sem_destroy doesn't succeed anymore, but returns EBUSY (since another thread executes a wait on it)
This behavior change breaks some of existing code.
Would it be possible to add an RTEMS config to allow user to select between OLD and NEW behavior ? (alternative is to move from POSIX sems to classic API and use rtems_semaphore_flush).

https://www.fieldengineer.com/skills/comptia-linux-plus

Change History (2)

comment:1 Changed 4 months ago by swt2c

What does this have to do with wxWidgets?

comment:2 Changed 4 months ago by swt2c

  • Resolution set to invalid
  • Status changed from new to closed

I think maybe you meant to go here:
https://devel.rtems.org/wiki/NewTicket

Note: See TracTickets for help on using tickets.