mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-18 11:05:48 +08:00
Kill LinuxThreads clones
This commit is contained in:
parent
3a31fead5e
commit
e393afaeec
@ -731,7 +731,7 @@ dnl defines ol_cv_sys_linux_threads to 'yes' or 'no'
|
||||
dnl 'no' implies pthreads implementation is not LinuxThreads.
|
||||
dnl
|
||||
AC_DEFUN([OL_SYS_LINUX_THREADS], [
|
||||
AC_CHECK_FUNC(pthread_kill_other_threads_np)
|
||||
AC_CHECK_FUNCS(pthread_kill_other_threads_np)
|
||||
AC_CACHE_CHECK([for LinuxThreads implementation],
|
||||
[ol_cv_sys_linux_threads],
|
||||
[ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np])
|
||||
|
@ -212,6 +212,9 @@
|
||||
/* Define if you have the pthread_kill function. */
|
||||
#undef HAVE_PTHREAD_KILL
|
||||
|
||||
/* Define if you have the pthread_kill_other_threads_np function. */
|
||||
#undef HAVE_PTHREAD_KILL_OTHER_THREADS_NP
|
||||
|
||||
/* Define if you have the pthread_rwlock_destroy function. */
|
||||
#undef HAVE_PTHREAD_RWLOCK_DESTROY
|
||||
|
||||
|
@ -41,6 +41,10 @@ ldap_int_thread_initialize( void )
|
||||
int
|
||||
ldap_int_thread_destroy( void )
|
||||
{
|
||||
#ifdef HAVE_PTHREAD_KILL_OTHER_THREADS_NP
|
||||
/* LinuxThreads: kill clones */
|
||||
pthread_kill_other_threads_np();
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user