mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-23 08:09:34 -05:00
ITS#2236. Add missing connections_shutdown() call.
This commit is contained in:
parent
fb73fea612
commit
05619c6ec7
3 changed files with 16 additions and 10 deletions
|
|
@ -1916,11 +1916,17 @@ slapd_daemon_task(
|
|||
#endif
|
||||
}
|
||||
|
||||
if( slapd_gentle_shutdown != 2 )
|
||||
if( slapd_gentle_shutdown != 2 ) {
|
||||
close_listeners ( 0 );
|
||||
}
|
||||
|
||||
free ( slap_listeners );
|
||||
slap_listeners = NULL;
|
||||
|
||||
if( !slapd_gentle_shutdown ) {
|
||||
connections_shutdown();
|
||||
}
|
||||
|
||||
#ifdef NEW_LOGGING
|
||||
LDAP_LOG( CONNECTION, CRIT,
|
||||
"slapd_daemon_task: shutdown waiting for %d threads to terminate.\n",
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ $LDAPADD -D "$MANAGERDN" -h $LOCALHOST -p $PORT -w $PASSWD < \
|
|||
RC=$?
|
||||
if test $RC != 0 ; then
|
||||
echo "ldapadd failed ($RC)!"
|
||||
kill -INT $PID $SLAVEPID
|
||||
kill -HUP $PID $SLAVEPID
|
||||
kill -KILL $SLURPPID
|
||||
exit $RC
|
||||
fi
|
||||
|
|
@ -184,7 +184,7 @@ RC=$?
|
|||
|
||||
if test $RC != 0 ; then
|
||||
echo "ldapsearch failed ($RC)!"
|
||||
kill -INT $PID $SLAVEPID
|
||||
kill -HUP $PID $SLAVEPID
|
||||
kill -KILL $SLURPPID
|
||||
exit $RC
|
||||
fi
|
||||
|
|
@ -196,12 +196,12 @@ RC=$?
|
|||
|
||||
if test $RC != 0 ; then
|
||||
echo "ldapsearch failed ($RC)!"
|
||||
kill -INT $PID $SLAVEPID
|
||||
kill -HUP $PID $SLAVEPID
|
||||
kill -KILL $SLURPPID
|
||||
exit $RC
|
||||
fi
|
||||
|
||||
kill -INT $PID $SLAVEPID
|
||||
kill -HUP $PID $SLAVEPID
|
||||
kill -KILL $SLURPPID
|
||||
|
||||
SEARCHOUT=$MASTEROUT
|
||||
|
|
|
|||
|
|
@ -107,7 +107,7 @@ $LDAPADD -D "$MANAGERDN" -h $LOCALHOST -p $PORT -w $PASSWD < \
|
|||
RC=$?
|
||||
if test $RC != 0 ; then
|
||||
echo "ldapadd failed ($RC)!"
|
||||
kill -INT $PID $SLAVEPID
|
||||
kill -HUP $PID $SLAVEPID
|
||||
kill -KILL $SLURPPID
|
||||
exit $RC
|
||||
fi
|
||||
|
|
@ -204,7 +204,7 @@ RC=$?
|
|||
|
||||
if test $RC != 0 ; then
|
||||
echo "ldapsearch failed ($RC)!"
|
||||
kill -INT $PID $SLAVEPID
|
||||
kill -HUP $PID $SLAVEPID
|
||||
kill -KILL $SLURPPID
|
||||
exit $RC
|
||||
fi
|
||||
|
|
@ -216,7 +216,7 @@ RC=$?
|
|||
|
||||
if test $RC != 0 ; then
|
||||
echo "ldapsearch failed ($RC)!"
|
||||
kill -INT $PID $SLAVEPID
|
||||
kill -HUP $PID $SLAVEPID
|
||||
kill -KILL $SLURPPID
|
||||
exit $RC
|
||||
fi
|
||||
|
|
@ -228,12 +228,12 @@ RC=$?
|
|||
|
||||
if test $RC != 0 ; then
|
||||
echo "ldapsearch failed ($RC)!"
|
||||
kill -INT $PID $SLAVEPID
|
||||
kill -HUP $PID $SLAVEPID
|
||||
kill -KILL $SLURPPID
|
||||
exit $RC
|
||||
fi
|
||||
|
||||
kill -INT $PID $SLAVEPID
|
||||
kill -HUP $PID $SLAVEPID
|
||||
kill -KILL $SLURPPID
|
||||
|
||||
SEARCHOUT=$SUBMASTEROUT
|
||||
|
|
|
|||
Loading…
Reference in a new issue