pthread_join: skip the detached thread

It's impossible to re-join a thread if it's detached.

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
2 files changed