]> git.sur5r.net Git - openldap/commit
Patch: Implement surrogate parent for back-shell (ITS#1815)
authorKurt Zeilenga <kurt@openldap.org>
Wed, 15 May 2002 06:18:14 +0000 (06:18 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 15 May 2002 06:18:14 +0000 (06:18 +0000)
commit4e51bba2176a3dc1bb88944f582afc6049f8ff69
treedd038c728221ff2f38ab0165343a2e7b41ddbd0f
parentd8388e461dffc40ed22ab7ba5a064254d1984664
Patch: Implement surrogate parent for back-shell  (ITS#1815)

================
Written by Hallvard B. Furuseth and placed into the public domain.
This software is not subject to any license of the University of Oslo.
================

A surrogate parent is supposed to keep back-shell children from
deadlocking due to resources locked by a threading parent.

Implementation note: The surrogate parent closes all unused file
descriptors, so it logs errors to stderr instead of via Debug() and
uses relloc() instead of ch_realloc().

Also close a file descriptor leak if fork() fails in fork.c.

Hallvard B. Furuseth <h.b.furuseth@usit.uio.no>, May 2002.
17 files changed:
configure
configure.in
include/portable.h.in
include/portable.nt
servers/slapd/back-shell/abandon.c
servers/slapd/back-shell/add.c
servers/slapd/back-shell/bind.c
servers/slapd/back-shell/compare.c
servers/slapd/back-shell/config.c
servers/slapd/back-shell/delete.c
servers/slapd/back-shell/fork.c
servers/slapd/back-shell/init.c
servers/slapd/back-shell/modify.c
servers/slapd/back-shell/modrdn.c
servers/slapd/back-shell/search.c
servers/slapd/back-shell/shell.h
servers/slapd/back-shell/unbind.c