mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-15 03:01:09 +08:00
Report exit status of pthread_create()
This commit is contained in:
parent
956fe808a8
commit
6bd6a7cf27
@ -200,10 +200,11 @@ main( int argc, char **argv )
|
||||
|
||||
time( &starttime );
|
||||
|
||||
if ( pthread_create( &listener_tid, NULL, slapd_daemon,
|
||||
(void *) port ) != 0 ) {
|
||||
if ( status = pthread_create( &listener_tid, NULL,
|
||||
slapd_daemon, (void *) port ) != 0 )
|
||||
{
|
||||
Debug( LDAP_DEBUG_ANY,
|
||||
"listener pthread_create failed\n", 0, 0, 0 );
|
||||
"listener pthread_create failed (%d)\n", status, 0, 0 );
|
||||
exit( 1 );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user