Report exit status of pthread_create()

This commit is contained in:
Kurt Zeilenga 1999-01-12 23:52:50 +00:00
parent 956fe808a8
commit 6bd6a7cf27

View File

@ -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 );
}