Coda File System

Re: mounting venus process not waited for

From: Jan Harkes <jaharkes_at_cs.cmu.edu>
Date: Thu, 5 Jun 2003 12:16:24 -0400
On Thu, Jun 05, 2003 at 08:49:49AM -0700, Phil Nelson wrote:
> What fun!

I actually found an interesting solution, a double fork....

Basically fork a child, and then have that fork and exit. The parent
reaps the first zombie, but as the second child doesn't have a parent
anymore it will be caught by init.

It has a little bit more overhead, but we only do this once during
startup anyways and can stop worrying about zombies or trying to deal
with the different semantics on various systems.

    http://www.faqs.org/faqs/unix-faq/faq/part3/section-13.html

Jan
Received on 2003-06-05 12:18:31