[haiku-commits] Re: r34092 - haiku/trunk/src/libs/bsd

  • From: Bruno Albuquerque <bga@xxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 17 Nov 2009 20:32:08 -0200

2009/11/17 François Revol <revol@xxxxxxx>:
>>  wait4(pid_t pid, int *status, int options, struct rusage *rusage) {
>>    pid_t waitPid = waitpid(pid, status, options);
>> -  getrusage(RUSAGE_CHILDREN, rusage);
>> +  if (waitPid != -1) {
>> +     getrusage(RUSAGE_CHILDREN, rusage);
>> +  }
>
> Hmm are you really sure it's this rusage you want ??

What do you mean exactly? this rusage has, at least, the fields I need
to use. Is there more than one struct rusage?

-Bruno

Other related posts: