Re: How to avoid zombie processes?
- From: David Schwartz <davids@xxxxxxxxxxxxx>
- Date: Fri, 12 Sep 2008 19:47:54 -0700 (PDT)
On Sep 12, 6:33 pm, Lambda <stephenh...@xxxxxxxxx> wrote:
The APUE section 8.6 mentions a method to avoid zombie processes.[snip]
The trick is to call fork twice:
But I cannot understand why this code could avoid zombie.
Can you explain it?
Since your child dies immediately after creation, and you reap it,
there is no child *of* *yours* left around to become a zombie.
DS
.
- References:
- How to avoid zombie processes?
- From: Lambda
- How to avoid zombie processes?
- Prev by Date: How to avoid zombie processes?
- Next by Date: Re: forking from a large active process in solaris
- Previous by thread: How to avoid zombie processes?
- Next by thread: Re: How to avoid zombie processes?
- Index(es):
Relevant Pages
|