Project

General

Profile

« Previous | Next » 

Revision d0066211

Added by mame (Yusuke Endoh) about 2 years ago

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]