From: Kurt Zeilenga Date: Tue, 12 Jan 1999 23:52:50 +0000 (+0000) Subject: Report exit status of pthread_create() X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~795 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6bd6a7cf271190ef8c88d3234c5e05ae9bf2cf91;p=openldap Report exit status of pthread_create() --- diff --git a/servers/slapd/main.c b/servers/slapd/main.c index ea321d8981..4b12eca0cf 100644 --- a/servers/slapd/main.c +++ b/servers/slapd/main.c @@ -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 ); }