Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Nov 2009 15:52:27 +0100
From:      Koffie Yahoo <koffieyahoo@gmail.com>
To:        freebsd-hackers@freebsd.org
Subject:   Re: Getting running time of child
Message-ID:  <9cb658f10911190652j555e4484u2427d2bed87871f8@mail.gmail.com>
In-Reply-To: <86ocmy63ww.fsf@ds4.des.no>
References:  <9cb658f10911190214j5a6bc17fq200a82ea0b4acaa8@mail.gmail.com> <86ocmy63ww.fsf@ds4.des.no>

next in thread | previous in thread | raw e-mail | index | archive | help
>> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9cb658f10911190652j555e4484u2427d2bed87871f8>