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
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
if( slapd_gentle_shutdown != 2 )
|
if( slapd_gentle_shutdown != 2 ) {
|
||||||
close_listeners ( 0 );
|
close_listeners ( 0 );
|
||||||
|
}
|
||||||
|
|
||||||
free ( slap_listeners );
|
free ( slap_listeners );
|
||||||
slap_listeners = NULL;
|
slap_listeners = NULL;
|
||||||
|
|
||||||
|
if( !slapd_gentle_shutdown ) {
|
||||||
|
connections_shutdown();
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef NEW_LOGGING
|
#ifdef NEW_LOGGING
|
||||||
LDAP_LOG( CONNECTION, CRIT,
|
LDAP_LOG( CONNECTION, CRIT,
|
||||||
"slapd_daemon_task: shutdown waiting for %d threads to terminate.\n",
|
"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=$?
|
RC=$?
|
||||||
if test $RC != 0 ; then
|
if test $RC != 0 ; then
|
||||||
echo "ldapadd failed ($RC)!"
|
echo "ldapadd failed ($RC)!"
|
||||||
kill -INT $PID $SLAVEPID
|
kill -HUP $PID $SLAVEPID
|
||||||
kill -KILL $SLURPPID
|
kill -KILL $SLURPPID
|
||||||
exit $RC
|
exit $RC
|
||||||
fi
|
fi
|
||||||
|
|
@ -184,7 +184,7 @@ RC=$?
|
||||||
|
|
||||||
if test $RC != 0 ; then
|
if test $RC != 0 ; then
|
||||||
echo "ldapsearch failed ($RC)!"
|
echo "ldapsearch failed ($RC)!"
|
||||||
kill -INT $PID $SLAVEPID
|
kill -HUP $PID $SLAVEPID
|
||||||
kill -KILL $SLURPPID
|
kill -KILL $SLURPPID
|
||||||
exit $RC
|
exit $RC
|
||||||
fi
|
fi
|
||||||
|
|
@ -196,12 +196,12 @@ RC=$?
|
||||||
|
|
||||||
if test $RC != 0 ; then
|
if test $RC != 0 ; then
|
||||||
echo "ldapsearch failed ($RC)!"
|
echo "ldapsearch failed ($RC)!"
|
||||||
kill -INT $PID $SLAVEPID
|
kill -HUP $PID $SLAVEPID
|
||||||
kill -KILL $SLURPPID
|
kill -KILL $SLURPPID
|
||||||
exit $RC
|
exit $RC
|
||||||
fi
|
fi
|
||||||
|
|
||||||
kill -INT $PID $SLAVEPID
|
kill -HUP $PID $SLAVEPID
|
||||||
kill -KILL $SLURPPID
|
kill -KILL $SLURPPID
|
||||||
|
|
||||||
SEARCHOUT=$MASTEROUT
|
SEARCHOUT=$MASTEROUT
|
||||||
|
|
|
||||||
|
|
@ -107,7 +107,7 @@ $LDAPADD -D "$MANAGERDN" -h $LOCALHOST -p $PORT -w $PASSWD < \
|
||||||
RC=$?
|
RC=$?
|
||||||
if test $RC != 0 ; then
|
if test $RC != 0 ; then
|
||||||
echo "ldapadd failed ($RC)!"
|
echo "ldapadd failed ($RC)!"
|
||||||
kill -INT $PID $SLAVEPID
|
kill -HUP $PID $SLAVEPID
|
||||||
kill -KILL $SLURPPID
|
kill -KILL $SLURPPID
|
||||||
exit $RC
|
exit $RC
|
||||||
fi
|
fi
|
||||||
|
|
@ -204,7 +204,7 @@ RC=$?
|
||||||
|
|
||||||
if test $RC != 0 ; then
|
if test $RC != 0 ; then
|
||||||
echo "ldapsearch failed ($RC)!"
|
echo "ldapsearch failed ($RC)!"
|
||||||
kill -INT $PID $SLAVEPID
|
kill -HUP $PID $SLAVEPID
|
||||||
kill -KILL $SLURPPID
|
kill -KILL $SLURPPID
|
||||||
exit $RC
|
exit $RC
|
||||||
fi
|
fi
|
||||||
|
|
@ -216,7 +216,7 @@ RC=$?
|
||||||
|
|
||||||
if test $RC != 0 ; then
|
if test $RC != 0 ; then
|
||||||
echo "ldapsearch failed ($RC)!"
|
echo "ldapsearch failed ($RC)!"
|
||||||
kill -INT $PID $SLAVEPID
|
kill -HUP $PID $SLAVEPID
|
||||||
kill -KILL $SLURPPID
|
kill -KILL $SLURPPID
|
||||||
exit $RC
|
exit $RC
|
||||||
fi
|
fi
|
||||||
|
|
@ -228,12 +228,12 @@ RC=$?
|
||||||
|
|
||||||
if test $RC != 0 ; then
|
if test $RC != 0 ; then
|
||||||
echo "ldapsearch failed ($RC)!"
|
echo "ldapsearch failed ($RC)!"
|
||||||
kill -INT $PID $SLAVEPID
|
kill -HUP $PID $SLAVEPID
|
||||||
kill -KILL $SLURPPID
|
kill -KILL $SLURPPID
|
||||||
exit $RC
|
exit $RC
|
||||||
fi
|
fi
|
||||||
|
|
||||||
kill -INT $PID $SLAVEPID
|
kill -HUP $PID $SLAVEPID
|
||||||
kill -KILL $SLURPPID
|
kill -KILL $SLURPPID
|
||||||
|
|
||||||
SEARCHOUT=$SUBMASTEROUT
|
SEARCHOUT=$SUBMASTEROUT
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue