[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem with time package, struct rusage and wait3
From: |
Igor Khavkine |
Subject: |
Re: Problem with time package, struct rusage and wait3 |
Date: |
Tue, 31 Jul 2001 11:58:15 -0400 |
"Arkadi E. Shishlov" wrote:
>
> On Tue, Jul 31, 2001 at 10:14:55AM -0400, Igor Khavkine wrote:
> > pid_t
> > __wait3 (__WAIT_STATUS stat_loc, int options, struct rusage *usage)
> > {
> > + int err;
> > +
>
> err as pid_t?
>
> arkadi.
Let this be a lesson to me... Do not post any patches before noon.
Yes, it should be `pid_t err', but that's not the only problem. wait3
wants rusage information for whatever processes it waits for, and it seems
that getrusage(RUSAGE_CHILDREN,...) returns "information is returned about
resources used by the terminated and waited-for children of the current
process."
They don't seem to be the same thing.
Also, the Hurd version of getrusage() currently doesn't even support
RUSAGE_CHILDREN. I have tried to see how Linux differenciate between
these behaviors, however I have not been able to find the Linux
implementation of getrusage() in the C library at all. I am confused now,
is it implement as some macro wrapping the system call?
Igor