[RTEMS Project] #4680: POSIX tasks cancelled through rtems_task_delete() should have an exit value of PTHREAD_CANCELED

RTEMS trac trac at rtems.org
Thu Jul 28 05:45:21 UTC 2022


#4680: POSIX tasks cancelled through rtems_task_delete() should have an exit value
of PTHREAD_CANCELED
-----------------------------+------------------------------
 Reporter:  Sebastian Huber  |       Owner:  Sebastian Huber
     Type:  enhancement      |      Status:  closed
 Priority:  normal           |   Milestone:  6.1
Component:  posix            |     Version:  6
 Severity:  normal           |  Resolution:  fixed
 Keywords:                   |  Blocked By:
 Blocking:                   |
-----------------------------+------------------------------
Changes (by Sebastian Huber <sebastian.huber@…>):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"8a864bc62cd57fbd6dd35141e5beb582de9b7bff/rtems"
 8a864bc6/rtems]:
 {{{
 #!CommitTicketReference repository="rtems"
 revision="8a864bc62cd57fbd6dd35141e5beb582de9b7bff"
 score: Use PTHREAD_CANCELED for _Thread_Cancel()

 The rtems_task_delete() directive is basically just a combined
 pthread_cancel()
 and pthread_join().  In addition, it removes the PTHREAD_DETACHED state.
 The
 exit value returned by pthread_join() of threads cancelled by
 rtems_task_delete() should reflect this by getting a PTHREAD_CANCELED
 value
 instead of NULL which could be a normal exit value.

 Close #4680.
 }}}

--
Ticket URL: <http://devel.rtems.org/ticket/4680#comment:1>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list