apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Trawick" <traw...@gmail.com>
Subject Re: apr_proc_create cleanup before exec
Date Fri, 15 Sep 2006 13:33:33 GMT
On 9/15/06, Lucian Adrian Grijincu <lucian.grijincu@avira.com> wrote:
> Hi,
> I was wondering if you'd consider adding support for used-defined
> cleanup functions that would be called in the child process, just before
> exec(3) in apr_proc_create (on fork-ing systems).
> (such as closing all descriptors that are not needed in the new process).

If you register a cleanup-for-exec with any pool, it will be called in
the child prior to the exec, on fork-ing systems.

Mime
View raw message