Ralf Jung ae4b677aa8
Rollup merge of #76521 - tavianator:fix-pthread-getattr-destroy, r=Amanieu
Fix segfault if pthread_getattr_np fails

glibc [destroys][1] the passed pthread_attr_t if pthread_getattr_np()
fails.  Destroying it again leads to a segfault.  Fix it by only
destroying it on success for glibc.

[1]: https://sourceware.org/git/?p=glibc.git;a=blob;f=nptl/pthread_getattr_np.c;h=ce437205e41dc05653e435f6188768cccdd91c99;hb=HEAD#l205
2020-09-21 15:30:37 +02:00
..
2020-09-08 22:26:44 -04:00
2020-09-02 17:38:21 -04:00
2020-09-03 06:31:21 +08:00
2020-09-08 22:26:44 -04:00
2020-09-02 17:37:40 -04:00
2020-09-04 14:00:09 -07:00
2020-09-02 17:37:40 -04:00
2020-09-12 14:00:38 +02:00
2020-08-22 20:23:50 -07:00