Rich Felker
80bf595255
trap UB from attempts to join a detached thread
...
passing to pthread_join the id of a thread which is not joinable
results in undefined behavior.
in principle the check to trap does not necessarily work if
pthread_detach was called after thread creation, since no effort is
made here to synchronize access to t->detached, but the check is
well-defined and harmless for callers which did not invoke UB, and
likely to help catch erroneous code that would otherwise mysteriously
hang.
patch by William Pitcock.
2017-08-11 20:42:30 -04:00
..
2015-11-02 16:16:00 -05:00
2017-02-15 17:50:47 -05:00
2015-05-16 01:15:40 -04:00
2015-11-02 16:16:00 -05:00
2016-02-08 21:07:09 +00:00
2016-03-06 17:41:56 +00:00
2016-04-18 05:19:13 +00:00
2015-11-02 16:16:00 -05:00
2016-04-25 19:37:06 -04:00
2016-05-08 22:57:40 -04:00
2016-11-11 23:06:21 -05:00
2017-06-08 19:44:27 -04:00
2016-01-22 03:39:07 +00:00
2015-11-02 16:16:00 -05:00
2011-03-20 00:16:43 -04:00
2013-09-20 02:00:27 -04:00
2012-07-11 11:34:46 -04:00
2015-11-11 19:29:45 -05:00
2017-07-04 17:12:52 -04:00
2017-01-13 10:47:08 +00:00
2015-06-10 02:27:40 +00:00
2015-02-09 22:11:52 +01:00
2014-09-06 21:38:04 -04:00
2014-02-09 20:07:43 -06:00
2014-09-06 22:27:45 -04:00
2014-09-06 22:27:45 -04:00
2014-09-06 22:27:45 -04:00
2014-09-06 22:27:45 -04:00
2014-09-06 22:27:45 -04:00
2014-09-06 22:27:45 -04:00
2012-10-05 11:51:50 -04:00
2014-09-06 22:07:22 -04:00
2014-09-06 22:07:22 -04:00
2014-09-06 22:07:22 -04:00
2014-09-06 22:07:22 -04:00
2014-09-06 22:07:22 -04:00
2014-09-06 22:07:22 -04:00
2015-03-03 22:50:02 -05:00
2011-02-12 00:22:29 -05:00
2016-11-07 20:47:24 -05:00
2016-11-07 20:47:24 -05:00
2011-03-07 15:46:37 -05:00
2016-11-07 20:47:24 -05:00
2012-11-11 15:38:04 -05:00
2012-11-11 15:38:04 -05:00
2012-11-11 15:38:04 -05:00
2012-11-11 15:38:04 -05:00
2016-11-07 20:47:24 -05:00
2016-11-07 20:47:24 -05:00
2015-04-10 02:27:52 -04:00
2013-07-22 13:57:02 -04:00
2017-07-04 17:12:52 -04:00
2011-03-07 15:42:52 -05:00
2012-11-08 17:04:20 -05:00
2013-07-22 13:57:02 -04:00
2016-02-04 22:59:13 +00:00
2014-07-06 23:10:35 -04:00
2014-08-17 22:09:47 -04:00
2014-08-17 22:09:47 -04:00
2014-08-17 22:09:47 -04:00
2014-08-17 22:09:47 -04:00
2017-07-04 17:12:52 -04:00
2012-09-06 22:44:55 -04:00
2011-03-07 16:20:12 -05:00
2012-11-08 17:04:20 -05:00
2013-07-22 13:57:02 -04:00
2015-03-04 21:46:08 -05:00
2016-11-08 12:45:03 -05:00
2014-09-07 10:28:08 -04:00
2014-09-07 10:28:08 -04:00
2016-11-07 20:47:24 -05:00
2011-05-30 11:31:07 -04:00
2013-06-08 11:36:41 -04:00
2013-06-26 22:02:23 -04:00
2014-09-06 21:38:04 -04:00
2017-08-11 20:42:30 -04:00
2015-04-13 19:24:51 -04:00
2014-07-05 23:29:55 -04:00
2014-08-16 19:52:04 -04:00
2011-02-12 00:22:29 -05:00
2012-11-17 18:42:16 -05:00
2014-08-16 02:28:34 -04:00
2014-09-06 18:11:24 -04:00
2012-11-17 18:42:16 -05:00
2015-03-02 17:46:22 -05:00
2016-06-27 15:18:13 -04:00
2016-06-27 15:18:13 -04:00
2011-02-12 00:22:29 -05:00
2012-11-08 17:04:20 -05:00
2012-11-17 18:42:16 -05:00
2014-08-15 23:54:52 -04:00
2015-04-10 00:26:34 -04:00
2013-07-22 13:57:02 -04:00
2015-03-03 22:50:02 -05:00
2011-02-12 00:22:29 -05:00
2014-08-15 23:54:52 -04:00
2011-08-03 10:21:32 -04:00
2015-03-02 17:46:22 -05:00
2015-03-02 17:46:22 -05:00
2011-08-03 10:21:32 -04:00
2011-08-03 10:21:32 -04:00
2014-08-15 23:54:52 -04:00
2011-08-03 10:21:32 -04:00
2011-03-07 16:43:25 -05:00
2012-11-08 17:04:20 -05:00
2013-07-22 13:57:02 -04:00
2014-09-07 10:28:08 -04:00
2016-11-08 12:45:03 -05:00
2015-04-13 19:24:51 -04:00
2014-06-10 04:02:40 -04:00
2011-05-30 11:31:07 -04:00
2016-10-20 01:48:27 -04:00
2013-06-26 21:34:44 -04:00
2012-11-11 15:38:04 -05:00
2011-03-03 18:30:44 -05:00
2013-12-12 05:09:18 +00:00
2011-02-12 00:22:29 -05:00
2011-02-12 00:22:29 -05:00
2015-04-22 03:24:37 -04:00
2015-04-22 03:24:37 -04:00
2011-03-24 23:06:48 -04:00
2014-09-06 18:11:24 -04:00
2011-03-04 00:45:59 -05:00
2012-09-06 22:44:55 -04:00
2014-08-15 23:54:52 -04:00
2015-04-21 13:24:46 -04:00
2014-08-15 23:54:52 -04:00
2015-03-03 22:50:02 -05:00
2012-07-24 00:51:36 -04:00
2011-03-04 00:45:59 -05:00
2011-03-04 00:45:59 -05:00
2017-01-19 11:45:01 -05:00
2011-04-17 11:43:03 -04:00
2014-09-07 10:28:08 -04:00
2014-09-07 10:28:08 -04:00
2014-09-07 10:28:08 -04:00
2014-09-07 10:28:08 -04:00
2014-09-07 10:28:08 -04:00
2012-10-04 21:01:56 -04:00
2014-09-06 21:38:04 -04:00
2014-09-06 21:38:04 -04:00
2014-09-06 21:38:04 -04:00
2015-04-11 10:38:57 -04:00