| 1 | #include "pthread_impl.h" |
| 2 | |
| 3 | static int __pthread_detach(pthread_t t) |
| 4 | { |
| 5 | 	/* |
| 6 | 		If we are the only thread, when we exit the whole process exits. |
| 7 | 		So the storage will be reclaimed no matter what. |
| 8 | 	*/ |
| 9 | 	return 0; |
| 10 | } |
| 11 | |
| 12 | weak_alias(__pthread_detach, pthread_detach); |
| 13 | weak_alias(__pthread_detach, thrd_detach); |