]> git.sur5r.net Git - openldap/commitdiff
Conditionally add SIGTRAP signal handler
authorKurt Zeilenga <kurt@openldap.org>
Sat, 9 Oct 2004 04:55:41 +0000 (04:55 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sat, 9 Oct 2004 04:55:41 +0000 (04:55 +0000)
servers/slapd/main.c

index db8403c843f76130691e3646890113c0bd6942d9..2e2dc924d2ee1aabacc7b5c40de92a0930a3f190 100644 (file)
@@ -704,7 +704,9 @@ unhandled_option:;
 #endif
        (void) SIGNAL( SIGINT, slap_sig_shutdown );
        (void) SIGNAL( SIGTERM, slap_sig_shutdown );
+#ifdef SIGTRAP
        (void) SIGNAL( SIGTRAP, slap_sig_shutdown );
+#endif
 #ifdef LDAP_SIGCHLD
        (void) SIGNAL( LDAP_SIGCHLD, wait4child );
 #endif