From owner-freebsd-hackers@FreeBSD.ORG Sat Jul 21 03:16:43 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5CFE516A419 for ; Sat, 21 Jul 2007 03:16:43 +0000 (UTC) (envelope-from ioplex@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.224]) by mx1.freebsd.org (Postfix) with ESMTP id 1A7D113C474 for ; Sat, 21 Jul 2007 03:16:42 +0000 (UTC) (envelope-from ioplex@gmail.com) Received: by wx-out-0506.google.com with SMTP id i29so881429wxd for ; Fri, 20 Jul 2007 20:16:42 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=bk0Rt8ZB3ZIQQfXz26yB2hVmzSBmLisRIo+GYAX++nFBxK48vtG5Vo2tJOPI5oC0zAZdXTNqm0xS7XuGVQzYgpsb21vjuks/+LG9kNnZZVkRYauRI3t0BQ9P55Nk7jTpE6HBHmxUXkn9kED6cIfwnuxH23TuFiPLdyRzoTIDXTk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=qDIzMDO0G87LlUjoXUs5hZvXWwhNH1ZK35ALP4SFCFQcRSHZcHFCDsYim47qwX4q690lcgDWDrGl5rj0FE/uA4SqtegK5/FUKNGs1a5tmeV8z9O3i7TmsqubE6Ack7xinxXzxHoxvggw7cCIYVlNpSowNuiLo301YuiSXT1Pmn8= Received: by 10.70.18.11 with SMTP id 11mr1857815wxr.1184987802376; Fri, 20 Jul 2007 20:16:42 -0700 (PDT) Received: by 10.70.38.11 with HTTP; Fri, 20 Jul 2007 20:16:41 -0700 (PDT) Message-ID: <78c6bd860707202016h2e9bf369oee7d14792fb1cf4c@mail.gmail.com> Date: Fri, 20 Jul 2007 23:16:42 -0400 From: "Michael B Allen" To: freebsd-hackers In-Reply-To: <78c6bd860707201923x5d94d609s8715ce58282d865@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <78c6bd860707201923x5d94d609s8715ce58282d865@mail.gmail.com> Subject: Re: Get pid of child that has exited? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Jul 2007 03:16:43 -0000 On 7/20/07, Michael B Allen wrote: > Hello, > > How does one get the pid if a child process that has exited? On other > systems this is available in siginfo_t but si_pid seems to be 0. Is > that normal? Nevermind. I see siginfo_t isn't portable. I'm using waitpid now. Mike