Cleanup and SIGTRAP

This commit is contained in:
Kurt Zeilenga 2004-10-09 06:26:50 +00:00
parent 1f39d7c156
commit 6782058b94
2 changed files with 6 additions and 2 deletions

View File

@ -565,7 +565,8 @@ bdb_cache_find_info(
struct bdb_info *bdb,
ID id )
{
EntryInfo ei, *ei2;
EntryInfo ei = { 0 };
EntryInfo *ei2;
ei.bei_id = id;
@ -595,7 +596,7 @@ bdb_cache_find_id(
struct bdb_info *bdb = (struct bdb_info *) op->o_bd->be_private;
Entry *ep = NULL;
int rc = 0;
EntryInfo ei;
EntryInfo ei = { 0 };
ei.bei_id = id;

View File

@ -639,6 +639,9 @@ int main( int argc, char **argv )
#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