[Bug 828237] [NEW] slapd forks and exits before it is listening, creating a race between listening and any dependent services

Clint Byrum clint at fewbar.com
Wed Aug 17 17:56:08 UTC 2011


Public bug reported:

The discussion in bug #652433 led me to dig into slapd's code in
servers/slapd/daemon.c.

Indeed, slapd_daemon_task, which actually calls 'listen()', is not
called until after lutil_detach has been called.

The appropriate thing to do is to start listening during the
initialization, and just let the threads do the accept portion. Another
option is to change lutil_detach to open a control socket and wait for
the child to report that it is ready for the parent to exit.

** Affects: openldap (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to openldap in Ubuntu.
https://bugs.launchpad.net/bugs/828237

Title:
  slapd forks and exits before it is listening, creating a race between
  listening and any dependent services

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openldap/+bug/828237/+subscriptions



More information about the Ubuntu-server-bugs mailing list