httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <>
Subject Re: [PATCH] pool confusion (take 1)
Date Mon, 10 Nov 1997 15:29:44 GMT
Dean Gaudet wrote:
> This is what pchild is for.  If something needs to be cleaned up when the
> child exits, then it's probably only created when the child starts.  One
> thing you missed in your explanation of fork() was how the non-memory
> resources are handled.  flock()'s stuff is an example of something that
> has to be created in the child, and cleaned in the child.  In addition to
> having a different creation/cleanup in the parent.

The only cleaning needed with flock() is in the parent; only it
should unlink the lockfile. Nonetheless, your point is still valid
that the child needs a way of registering it's own cleanups.

      Jim Jagielski            |       jaguNET Access Services           |
            "Look at me! I'm wearing a cardboard belt!"

View raw message