[RTEMS Project] #4675: sleep should be a thread cancellation point
RTEMS trac
trac at rtems.org
Sat Mar 18 17:43:07 UTC 2023
#4675: sleep should be a thread cancellation point
-----------------------------+---------------------
Reporter: Alexandre Oliva | Owner: (none)
Type: defect | Status: new
Priority: normal | Milestone:
Component: posix | Version: 6
Severity: normal | Resolution:
Keywords: | Blocked By:
Blocking: |
-----------------------------+---------------------
Comment (by Joel Sherrill):
Do you have a test to show something isn't right? sleep() and nanonsleep()
ultimately call clock_nanosleep() and the requested blocking state is
"STATES_WAITING_FOR_TIME | STATES_INTERRUPTIBLE_BY_SIGNAL"
https://git.rtems.org/rtems/tree/cpukit/posix/src/clocknanosleep.c#n77
RTEMS state bits consist of the type of object is being blocked on and
attributes such as interruptible. It has been this way for a LONG time.
As a random thought, if you don't build RTEMS with POSIX enabled, then
POSIX signals are disabled and then this likely wouldn't work.
--
Ticket URL: <http://devel.rtems.org/ticket/4675#comment:2>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list