pthread_detach
extern int pthread_detach(pthread_t thread);
WRAPPER_FUNCTION(int, pthread_detach, (pthread_t thread),
if (pthread_detach(thr) != 0)