Xref: utzoo comp.unix.ultrix:3079 comp.unix.wizards:21196 Path: utzoo!attcan!uunet!cs.utexas.edu!pp!lot!ables From: ables@lot.ACA.MCC.COM (King Ables) Newsgroups: comp.unix.ultrix,comp.unix.wizards Subject: Re: How to clear zombie children while parent still alive. Message-ID: <727@lot.ACA.MCC.COM> Date: 27 Mar 90 17:48:22 GMT References: <1990Mar27.164632.18462@ux1.cso.uiuc.edu> Organization: MCC, Austin, TX Lines: 14 From article <1990Mar27.164632.18462@ux1.cso.uiuc.edu>, by long@castor.csg.uiuc.edu (Junsheng Long): > Is that possible to clear all zombie children while the parent > is still in execution under SunOS? Check the wait3() system call. The child process stays in the process table as a zombie until the parent waits on it and gets some indication that it's died. Yes, in your case you probably don't care. Neither did I, so I just called wait3(0,WNOHANG,0) to clear the condition on all child zombie processes. ----------------------------------------------------------------------------- King Ables Micro Electronics and Computer Technology Corp. ables@mcc.com 3500 W. Balcones Center Drive +1 512 338 3749 Austin, TX 78759 -----------------------------------------------------------------------------