]> git.sur5r.net Git - openldap/commitdiff
Clean up SIGBREAK / NT
authorHoward Chu <hyc@openldap.org>
Mon, 24 Mar 2003 07:49:59 +0000 (07:49 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 24 Mar 2003 07:49:59 +0000 (07:49 +0000)
servers/slurpd/fm.c

index 50740f25b5bf225ec1fba51078f7fcdba05edef2..de725e72f90f970d6421b6f93dbabc9330334f1e 100644 (file)
@@ -65,8 +65,8 @@ fm(
 #ifdef SIGHUP
     (void) SIGNAL( SIGHUP, slurp_set_shutdown );
 #endif
-#ifdef SIGBREAK
-    (void) SIGNAL( SIGBREAK, slurp_set_shutdown );
+#if defined(SIGBREAK) && defined(HAVE_NT_SERVICE_MANAGER)
+    (void) SIGNAL( SIGBREAK, do_nothing );
 #endif
 
     if ( sglob->one_shot_mode ) {
@@ -162,10 +162,6 @@ slurp_set_shutdown(int sig)
 {
     int        i;
 
-#if HAVE_NT_SERVICE_MANAGER && SIGBREAK
-    if (sig == SIGBREAK) return do_nothing( sig );
-#endif
-
     sglob->slurpd_shutdown = 1;                                /* set flag */
     ldap_pvt_thread_kill( sglob->fm_tid, LDAP_SIGUSR1 );       /* wake up file mgr */
     sglob->rq->rq_lock( sglob->rq );                   /* lock queue */