Re: defunct processes don't always go away when parent does waitpid(-1)
From: Gary R. Hook (noway_at_nospammers.net)
Date: 10/31/05
- Next message: C C: "Anyone using PBS Pro 7.0"
- Previous message: Gary R. Hook: "Re: rs6000 console"
- In reply to: Tao Chen: "Re: defunct processes don't always go away when parent does waitpid(-1)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 31 Oct 2005 17:13:59 GMT
Tao Chen wrote:
> Rob Y wrote:
>
>> Presumably, my once-per-minut waitpid(-1)
>> should clean them all up, no?
>
> No, it takes only one child.
That would be incorrect (the "no" part). Repeated calls to waitpid
to "sample" and harvest any children is the right thing to do. You
should pick up another child every time you call, so you might
1) ensure that you make enough calls to pick up all the kids
2) look for any APARs that may be relevant, or update to the latest
level of your AIX release
- Next message: C C: "Anyone using PBS Pro 7.0"
- Previous message: Gary R. Hook: "Re: rs6000 console"
- In reply to: Tao Chen: "Re: defunct processes don't always go away when parent does waitpid(-1)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|