[Date Prev][Date Next] [Chronological] [Thread] [Top]

RE: gentlehup

> -----Original Message-----
> From: Kurt D. Zeilenga [mailto:Kurt@OpenLDAP.org]

> At 01:44 PM 2002-08-14, Howard Chu wrote:
> >More on soft restarts... Not sure if I already sent this out.
> >
> >We can get a seamless restart if we fork/exec a new copy of slapd that
> >inherits
> >the currently open listener sockets.
> Note that forking pthread applications is non-portable...

This isn't a major issue, all of the listeners are opened long before any
threads are created. We can fork() after opening the listeners and have the
child process wait in a sigpause() until we want it to do something. It will
consume practically no resources in the meantime.

> One approach would be to use the surrogate parent (see
> back-shell) for establishment of the new server... figuring
> out how to pass the listener sockets is, however, likely
> an issue.

Seems like a lot of effort for an odd problem. The msg from Ron Kunkel
implies that this elaborate workaround is unneeded.

  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support