diff options
| author | Yusuke Endoh <mame@ruby-lang.org> | 2023-11-06 20:30:56 +0900 |
|---|---|---|
| committer | Yusuke Endoh <mame@ruby-lang.org> | 2023-11-07 04:39:09 +0900 |
| commit | d0066211f2052bf1444ffeb11544860a12cebff2 (patch) | |
| tree | 4d000252cfa1909711f2c04092bd723d654e2427 /include/ruby/internal | |
| parent | 15560cce5f8709b8790bfde1528007c26654d168 (diff) | |
Detach a pthread after pthread_setaffinity_np
After a pthread for getaddrinfo is detached, we cannot predict when the
thread will exit. It would lead to a segfault by setting
pthread_setaffinity to the terminated pthread. I guess this problem
would be more likely to occur in high-load environments.
This change detaches the pthread after pthread_setaffinity is called.
[Feature #19965]
Diffstat (limited to 'include/ruby/internal')
0 files changed, 0 insertions, 0 deletions
