[Date Prev][Date Next]
Re: (ITS#6745) HEAD emfile race condition -> slapd stopping listening?
Howard Chu wrote:
>>> Maybe to compensate, slapd_remove() has code which checks if emfile
>>> is too big, but nothing checks if it is too small - which looks like
>>> slapd might never start listening again.
> On 2nd thought - I don't see how the outcome you describe can occur. If emfile
> is non-zero, the list of listeners will be checked for a listener with
> non-zero mute status. If any are found, one is guaranteed to be unmuted.
But if emfile becomes too small, it reaches zero with a listener still
muted - and with emfile = zero, the nothing is unmuted.