Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gh-143121: Avoid thread leak in configure
If you are building with `--with-thread-sanitizer` and don't use the
suppression file, then running configure will report a thread leak.

Call `pthread_join()` to avoid the thread leak.
  • Loading branch information
colesbury committed Dec 23, 2025
commit 88f5b5ec1c125d8e47aa17a9cd550abddb46de99
1 change: 1 addition & 0 deletions configure

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -4760,6 +4760,7 @@ if test "$posix_threads" = "yes"; then
if (pthread_attr_init(&attr)) return (-1);
if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) return (-1);
if (pthread_create(&id, &attr, foo, NULL)) return (-1);
if (pthread_join(id, NULL)) return (-1);
return (0);
}]])],
[ac_cv_pthread_system_supported=yes],
Expand Down
Loading