From owner-freebsd-questions Thu Dec 23 11:43:43 1999 Delivered-To: freebsd-questions@freebsd.org Received: from logisticsoftware.co.nz (logisticsoftware.co.nz [202.37.163.1]) by hub.freebsd.org (Postfix) with ESMTP id C5F5514EE7 for ; Thu, 23 Dec 1999 11:43:38 -0800 (PST) (envelope-from jonc@logisticsoftware.co.nz) Received: from jonc.logisticsoftware.co.nz (jonc.logisticsoftware.co.nz [10.1.3.1]) by logisticsoftware.co.nz (8.9.3/8.9.3) with ESMTP id IAA29224; Fri, 24 Dec 1999 08:43:32 +1300 (NZDT) Received: (from jonc@localhost) by jonc.logisticsoftware.co.nz (8.9.3/8.9.3) id IAA38727; Fri, 24 Dec 1999 08:42:57 +1300 (NZDT) (envelope-from jonc) Date: Fri, 24 Dec 1999 08:42:57 +1300 From: Jonathan Chen To: =?iso-8859-1?Q?=B1=E8=BC=BA=BF=EC?= Cc: freebsd-questions@FreeBSD.ORG Subject: Re: defunct problem Message-ID: <19991224084256.C38603@jonc.logisticsoftware.co.nz> References: <000c01bf4d19$538ffe10$31977ed2@george> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Mutt 1.0i In-Reply-To: <000c01bf4d19$538ffe10$31977ed2@george>; from success@ecoin.co.kr on Thu, Dec 23, 1999 at 04:42:54PM +0900 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Dec 23, 1999 at 04:42:54PM +0900, ±è¼º¿ì wrote: > Hello. > I am programming on FreeBSD, and I meet a defunct problem. > I'm using C language and the function using on my program is just fork(). > When the child is terminated normally, the child does not disappear and remains as defunct. You'll have to use one of the wait(2) functions on the parent to reap the dead-child - that's the more portable solution. ------------------------------------------------------------------- Jonathan Chen | -insert-witty-quip-here- ------------------------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message