#include "slurp.h"
#include "globals.h"
+#include "lutil.h"
extern int doargs( int, char **, Globals * );
extern void start_lwp_scheduler();
#endif /* HAVE_LWP */
+int
main(
int argc,
char **argv
)
{
- pthread_attr_t attr;
- int status;
- int i;
-
#ifdef NO_THREADS
/* Haven't yet written the non-threaded version */
- fprintf( stderr, "slurpd currently requires threads support\n" );
- exit( 1 );
+ fputs( "slurpd currently requires threads support\n", stderr );
+ return( 1 );
#else
+ pthread_attr_t attr;
+ int status;
+ int i;
+
/*
* Create and initialize globals. init_globals() also initializes
* the main replication queue.
#else /* LDAP_DEBUG */
if ( !sglob->one_shot_mode )
#endif /* LDAP_DEBUG */
- {
- detach();
- }
+ lutil_detach( 0, 0 );
#if defined( HAVE_LWP )
/*