From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 19 14:52:33 2009 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 36F1C106566B for ; Thu, 19 Nov 2009 14:52:33 +0000 (UTC) (envelope-from koffieyahoo@gmail.com) Received: from mail-yw0-f178.google.com (mail-yw0-f178.google.com [209.85.211.178]) by mx1.freebsd.org (Postfix) with ESMTP id C9D4C8FC13 for ; Thu, 19 Nov 2009 14:52:32 +0000 (UTC) Received: by ywh8 with SMTP id 8so2126942ywh.3 for ; Thu, 19 Nov 2009 06:52:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=P1UQVM4jjk5bj+o6Vzkv8CcgL7KMgcBuEuiZ3cmZe3o=; b=uJ0l8nvrNHb7FNCwrvqbeuktSN4QJXX6PZykwqy0NFLSqf3NShWVKJCPgGLJnux65A 3Kfzc+0c7l9oPaXpuCulTZE83W6I9w6bwMOQYIHCxJvPmTQyLH6oaJUDOsDekqVf1SP9 fposgeeHO3oQ0AtHUObvy/LX+r1QlQcqbQ7yM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=M6CjE3MVUIKEysahdNe0Z8MEGq3dFyNoTyNSDbjzlK1OPa4PZlkhQCuPHBbUVkY+A6 hJkQI+rnyJ1UaeoO+pDnshQGgwJCTs/P8YZ2xChARw7RNb2fmVT/zW9xoGYCgkCuBIXR 3SqKYNuzmWvTq+16iL9zCJzUTNOLmbtT0lXIk= MIME-Version: 1.0 Received: by 10.150.72.25 with SMTP id u25mr311591yba.57.1258642347332; Thu, 19 Nov 2009 06:52:27 -0800 (PST) In-Reply-To: <86ocmy63ww.fsf@ds4.des.no> References: <9cb658f10911190214j5a6bc17fq200a82ea0b4acaa8@mail.gmail.com> <86ocmy63ww.fsf@ds4.des.no> Date: Thu, 19 Nov 2009 15:52:27 +0100 Message-ID: <9cb658f10911190652j555e4484u2427d2bed87871f8@mail.gmail.com> From: Koffie Yahoo To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: Getting running time of child 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: Thu, 19 Nov 2009 14:52:33 -0000 >> I've looked but not found (and I hope I'm in the right group here): Is >> there a way to get the user time and system time of a /running/ child >> from its parent (without having to mount procfs)? > > If you have only one child, there's getrusage(2). Unfortunately, that only works for children that have terminated, not for active children. I'm interested in active children. Jay