]> git.sur5r.net Git - openldap/commitdiff
Report exit status of pthread_create()
authorKurt Zeilenga <kurt@openldap.org>
Tue, 12 Jan 1999 23:52:50 +0000 (23:52 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 12 Jan 1999 23:52:50 +0000 (23:52 +0000)
servers/slapd/main.c

index ea321d8981a67a197d3f210eafa95d594daeb2d2..4b12eca0cfdbf5c776bb98fd33defc349b0d554b 100644 (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 );
                }