ITS#798: Fix one-shot mode with empty file

This commit is contained in:
Kurt Zeilenga 2000-10-03 19:22:49 +00:00
parent 01f862dc95
commit 6d273e716d
2 changed files with 8 additions and 1 deletions

View File

@ -6,6 +6,7 @@ OpenLDAP 2.0.X Engineering
Fixed slapd idletimeout lock bug (ITS#767)
Fixed slapd caseIgnoreIA5string indexing bug (ITS#786)
Fixed slurpd TLS initialization bug (ITS#768)
Fixed slurpd empty one shot hang (ITS#798)
Fixed -lldap SASL ctx close bug (ITS#790)
Fixed -lldap first/next attribute bug (ITS#778)
Fixed -lldap (v2) rebind URL bug

View File

@ -62,7 +62,13 @@ Ri_process(
rq->rq_lock( rq );
while ( !sglob->slurpd_shutdown &&
(( re = rq->rq_gethead( rq )) == NULL )) {
/* No work - wait on condition variable */
/* No work */
if ( sglob->one_shot_mode ) {
/* give up if in one shot mode */
rq->rq_unlock( rq );
return 0;
}
/* wait on condition variable */
ldap_pvt_thread_cond_wait( &rq->rq_more, &rq->rq_mutex );
}