mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-30 13:30:57 +08:00
Cleanup and SIGTRAP
This commit is contained in:
parent
1f39d7c156
commit
6782058b94
@ -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;
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user