kib
6e6ecd2aa1
Return success, instead of ESRCH, from pthread_cancel(3) applied to the
...
exited but not yet joined thread.
Before, if the thread exited but was not yet joined, we returned
ESRCH.
According to IEEE Std 1003.1™-2017 recommendation in the
description of pthread_cancel(3):
If an implementation detects use of a thread ID after the end of its
lifetime, it is recommended that the function should fail and report
an [ESRCH] error.
So it seems desirable to not return ESRCH until the lifetime of the
thread ID ends. According to the section 2.9.2 Thread IDs,
The lifetime of a thread ID ends after the thread terminates if it
was created with the detachstate attribute set to
PTHREAD_CREATE_DETACHED or if pthread_detach() or pthread_join()
has been called for that thread.
In other words, lifetime for thread ID of exited but not yet joined thread
did not ended yet.
Prompted by: cperciva
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
2020-02-13 23:22:12 +00:00
..
2019-12-11 17:37:53 +00:00
2020-01-07 22:45:02 +00:00
2020-01-31 18:04:04 +00:00
2020-01-28 15:34:00 +00:00
2019-09-17 06:07:08 +00:00
2019-12-11 17:37:53 +00:00
2019-12-11 17:37:53 +00:00
2020-02-12 06:54:34 +00:00
2019-09-05 14:15:47 +00:00
2020-01-24 02:18:09 +00:00
2019-02-26 05:59:22 +00:00
2019-12-11 17:37:53 +00:00
2019-12-11 17:37:53 +00:00
2019-12-20 19:53:05 +00:00
2019-12-11 17:37:53 +00:00
2019-12-11 17:37:53 +00:00
2019-12-11 17:37:53 +00:00
2019-12-11 17:38:15 +00:00
2019-12-11 17:37:53 +00:00
2020-02-09 12:12:03 +00:00
2020-01-14 17:50:13 +00:00
2019-12-20 19:53:05 +00:00
2019-12-11 17:37:53 +00:00
2019-12-11 17:37:53 +00:00
2020-01-02 23:07:45 +00:00
2019-12-11 17:37:53 +00:00
2019-12-22 11:50:44 +00:00
2019-12-11 17:37:53 +00:00
2020-02-12 06:56:04 +00:00
2019-12-11 17:37:53 +00:00
2019-12-11 17:37:53 +00:00
2020-01-14 17:50:13 +00:00
2019-12-11 17:37:53 +00:00
2019-12-21 02:44:26 +00:00
2019-12-11 17:37:53 +00:00
2019-12-11 17:37:53 +00:00
2019-12-11 17:37:53 +00:00
2019-12-11 17:37:53 +00:00
2019-12-11 17:37:53 +00:00
2019-12-11 17:37:53 +00:00
2019-12-11 17:37:53 +00:00
2019-12-05 13:20:15 +00:00
2019-12-11 17:37:53 +00:00
2019-12-20 19:53:05 +00:00
2019-12-11 17:37:53 +00:00
2020-02-05 16:55:00 +00:00
2019-12-11 17:37:53 +00:00
2020-01-14 17:50:13 +00:00
2019-12-16 14:08:49 +00:00
2019-12-11 17:37:53 +00:00
2019-12-11 17:37:53 +00:00
2019-12-11 17:37:53 +00:00
2019-02-25 18:22:20 +00:00
2019-12-11 17:37:53 +00:00
2019-10-10 12:46:34 +00:00
2020-01-07 21:44:27 +00:00
2019-09-05 14:13:08 +00:00
2020-02-12 06:53:29 +00:00
2019-12-11 17:37:53 +00:00
2019-12-11 17:37:53 +00:00
2020-02-11 07:02:48 +00:00
2019-12-11 17:37:53 +00:00
2020-02-11 20:15:49 +00:00
2019-12-11 17:37:53 +00:00
2019-12-11 17:37:53 +00:00
2019-12-11 17:37:53 +00:00
2019-12-11 17:37:53 +00:00
2019-12-11 17:37:53 +00:00
2019-12-11 17:37:53 +00:00
2019-12-20 19:53:05 +00:00
2018-12-05 10:58:02 +00:00
2019-12-11 17:37:53 +00:00
2019-12-11 17:37:53 +00:00
2019-12-11 17:37:53 +00:00
2019-12-21 21:01:03 +00:00
2019-09-05 14:15:47 +00:00
2020-02-07 22:28:04 +00:00
2019-12-11 17:37:53 +00:00
2020-01-07 05:33:33 +00:00
2019-12-13 04:55:17 +00:00
2019-09-26 16:19:22 +00:00
2019-12-11 17:37:53 +00:00
2019-12-11 17:37:53 +00:00
2019-09-05 14:15:47 +00:00
2019-12-11 17:37:53 +00:00
2019-12-11 17:37:53 +00:00
2019-12-11 17:37:53 +00:00
2019-12-20 21:56:28 +00:00
2019-12-11 17:37:53 +00:00
2020-01-04 22:05:00 +00:00
2020-01-04 20:19:25 +00:00
2019-12-02 20:58:04 +00:00
2019-12-11 17:37:53 +00:00
2020-01-06 18:15:55 +00:00
2019-12-13 05:11:34 +00:00
2020-02-13 23:22:12 +00:00
2019-12-11 17:37:53 +00:00
2019-12-11 17:37:53 +00:00
2019-12-11 17:37:53 +00:00
2019-12-11 17:37:53 +00:00
2019-12-11 17:37:53 +00:00
2020-01-13 06:55:31 +00:00
2020-01-30 17:30:04 +00:00
2019-12-11 17:37:53 +00:00
2020-02-05 04:17:14 +00:00
2019-12-11 17:37:53 +00:00
2019-12-11 17:37:53 +00:00
2019-12-17 01:37:02 +00:00
2019-12-11 17:37:53 +00:00
2020-01-25 21:16:45 +00:00
2019-12-11 17:37:53 +00:00
2019-12-11 17:37:53 +00:00
2019-12-11 17:37:53 +00:00
2020-02-02 19:16:52 +00:00
2019-12-11 17:37:53 +00:00
2019-12-11 17:37:53 +00:00
2020-02-12 06:54:28 +00:00