diff options
author | DJ Delorie <dj@redhat.com> | 2021-08-03 16:33:29 -0400 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2021-08-04 15:33:21 -0400 |
commit | ac30324c67d94696fdb0799e9d4fc51dc70d490b (patch) | |
tree | 5f20415a57ead411db07f887ad0b6107539cddca /sysdeps/unix/sysv/linux | |
parent | b17e842a60819098d2a203ecc8b8371b7e1d6c65 (diff) | |
download | glibc-ac30324c67d94696fdb0799e9d4fc51dc70d490b.tar glibc-ac30324c67d94696fdb0799e9d4fc51dc70d490b.tar.gz glibc-ac30324c67d94696fdb0799e9d4fc51dc70d490b.tar.bz2 glibc-ac30324c67d94696fdb0799e9d4fc51dc70d490b.zip |
test-dlclose-exit-race: avoid hang on pthread_create error
This test depends on the "last" function being called in a
different thread than the "first" function, as "last" posts
a semaphore that "first" is waiting on. However, if pthread_create
fails - for example, if running in an older container before
the clone3()-in-container-EPERM fixes - exit() is called in the
same thread as everything else, the semaphore never gets posted,
and first hangs.
The fix is to pre-post that semaphore before a single-threaded
exit.
Reviewed-by: Arjun Shankar <arjun@redhat.com>
Diffstat (limited to 'sysdeps/unix/sysv/linux')
0 files changed, 0 insertions, 0 deletions