Fix minor Pth initialization bug

This commit is contained in:
Kurt Zeilenga 2000-06-13 02:46:45 +00:00
parent 49a0b0f7e8
commit aadecc852b
2 changed files with 7 additions and 1 deletions

View File

@ -4,6 +4,7 @@ Changes included in OpenLDAP 1.2.12 Engineering
CVS Tag: OPENLDAP_REL_ENG_1_2
Fixed ldapmodify ldaphost NULL bug
Fixed ldapsearch uninitialized fp bug
Fixed Pth initialization bug
Build Environment
Ignore make clean rm failure

View File

@ -27,9 +27,14 @@ static pth_attr_t detach_attr;
int
ldap_pvt_thread_initialize( void )
{
if( !pth_init() ) {
return -1;
}
detach_attr = pth_attr_new();
pth_attr_set( detach_attr, PTH_ATTR_JOINABLE, 0 );
return pth_init();
return 0;
}
int