From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 30 18:17:47 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C3A3B16A4CE for ; Wed, 30 Mar 2005 18:17:47 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id 604BE43D2D for ; Wed, 30 Mar 2005 18:17:45 +0000 (GMT) (envelope-from fbsd.hackers@gmail.com) Received: by rproxy.gmail.com with SMTP id j1so167289rnf for ; Wed, 30 Mar 2005 10:17:43 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=hoTRaVp0tqmmGwpO5kRecn1FnaeySfpM/ANlqORmot+ENbCtet6v9piRp9WepBsja1Hbd0/V+TX4o4pdbmuoi2GUbzIgTPCSpfau9azRG5PMXxx2aFEkBqPq2toRmBKPhgzSN7N1Ch84PId9SDE+nSFmIxzH6WuCeKX76IG5lgk= Received: by 10.38.1.73 with SMTP id 73mr500979rna; Wed, 30 Mar 2005 10:17:43 -0800 (PST) Received: by 10.38.11.43 with HTTP; Wed, 30 Mar 2005 10:17:43 -0800 (PST) Message-ID: Date: Wed, 30 Mar 2005 14:17:43 -0400 From: zean zean To: freebsd-hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: the best form to wait the finish of execution of a child... X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: zean zean List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Mar 2005 18:17:47 -0000 Hi Hackers: Excuse for my badly English. which is the best form to wait the finish of execution of a child. My idea is: pid_t chilpid; while(childpid != wait(&status)) ; Any aid to obtain the best way is very welcome. PD. Excuse my ignorance and I hope they can guide me. Bye and thanxs ;)