diff options
| author | Florian Weimer <fweimer@redhat.com> | 2021-10-01 18:16:41 +0200 |
|---|---|---|
| committer | Florian Weimer <fweimer@redhat.com> | 2021-10-01 18:17:19 +0200 |
| commit | 4bf72519987ebc2be4a2058c670379040fae90ea (patch) | |
| tree | d4983358f6f863e7f7b56bc05341363f181b81c6 /scripts | |
| parent | 33adeaa3e2b9143c38884bc5aa65ded222ed274e (diff) | |
| download | glibc-4bf72519987ebc2be4a2058c670379040fae90ea.tar.xz glibc-4bf72519987ebc2be4a2058c670379040fae90ea.zip | |
support: Add check for TID zero in support_wait_for_thread_exit
Some kernel versions (observed with kernel 5.14 and earlier) can list
"0" entries in /proc/self/task. This happens when a thread exits
while the task list is being constructed. Treat this entry as not
present, like the proposed kernel patch does:
[PATCH] procfs: Do not list TID 0 in /proc/<pid>/task
<https://lore.kernel.org/all/8735pn5dx7.fsf@oldenburg.str.redhat.com/>
Fixes commit 032d74eaf6179100048a5bf0ce942e97dc8b9a60 ("support: Add
support_wait_for_thread_exit").
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Tested-by: Carlos O'Donell <carlos@redhat.com>
(cherry picked from commit 176c88f5214d8107d330971cbbfbbba5186a111f)
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
