]> git.sur5r.net Git - openldap/blobdiff - servers/slurpd/admin.c
LDAP_SASL_INTERACTIVE -> LDAP_SASL_QUIET
[openldap] / servers / slurpd / admin.c
index c056cd1d8ba68cc6a2619604e2e619552747652e..1de4901e4a562ec26e91b889263e238cd89aa143 100644 (file)
@@ -1,3 +1,8 @@
+/* $OpenLDAP$ */
+/*
+ * Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved.
+ * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
+ */
 /*
  * Copyright (c) 1996 Regents of the University of Michigan.
  * All rights reserved.
@@ -18,7 +23,9 @@
 #include "portable.h"
 
 #include <stdio.h>
-#include <signal.h>
+#include <ac/stdlib.h>
+
+#include <ac/signal.h>
 
 #include "slurp.h"
 #include "globals.h"
@@ -34,9 +41,9 @@
  * slurpd receives a USR2 signal, it will dump its replication 
  * queue to the disk file given by SLURPD_DUMPFILE.
  */
-void
-do_admin()
+RETSIGTYPE
+do_admin( int sig )
 {
     sglob->rq->rq_dump( sglob->rq );
-    (void) SIGNAL( SIGUSR2, (void *) do_admin );
+    (void) SIGNAL_REINSTALL( sig, do_admin );
 }