#include <ac/wait.h>
#include <ac/errno.h>
+#include "ldap_pvt.h"
+
#include "slap.h"
#include "lutil.h"
#include "ldif.h"
/* in nt_main.c */
LDAP_LUTIL_V(SERVICE_STATUS) SLAPDServiceStatus;
LDAP_LUTIL_V(SERVICE_STATUS_HANDLE) hSLAPDServiceStatus;
-extern ldap_pvt_thread_cond_t started_event, stopped_event;
+/* externs are frowned upon, but so is NT :-) */
+extern ldap_pvt_thread_cond_t started_event, stopped_event;
extern int is_NT_Service;
void CommenceStartupProcessing( LPCTSTR serverName,
#endif
{
int i, no_detach = 0;
- int rc;
+ int rc = 1;
char *urls = NULL;
#if defined(HAVE_SETUID) && defined(HAVE_SETGID)
char *username = NULL;
#endif
slapd_daemon_destroy();
+ schema_destroy();
+
#ifdef HAVE_TLS
ldap_pvt_tls_destroy();
#endif