lkml.org 
[lkml]   [2007]   [Apr]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: per-thread rusage
On Wed, 04 Apr 2007 10:29:31 PDT, William Lee Irwin III said:
>> Index: anon/include/linux/resource.h
>> ===================================================================
>> --- anon.orig/include/linux/resource.h 2007-04-04 09:57:41.239118534 0700
>> +++ anon/include/linux/resource.h 2007-04-04 09:57:59.840178548 -0700
>> @@ -18,7 +18,8 @@
>> */
>> #define RUSAGE_SELF 0
>> #define RUSAGE_CHILDREN (-1)
>> -#define RUSAGE_BOTH (-2) /* sys_wait4() uses this */
>> +#define RUSAGE_THREAD (-2)
>> +#define RUSAGE_BOTH (-3) /* sys_wait4() uses this */

On Wed, Apr 04, 2007 at 06:36:47PM -0400, Valdis.Kletnieks@vt.edu wrote:
> Umm.. I'm having a high-idiot-quotient day today, but don't you want to
> leave _BOTH at -2 and put _THREAD at -3, to avoid an ABI breakage?

It's a rather natural question. The answer is that RUSAGE_BOTH is only
ever used internally to the kernel, so there is no userspace ABI change.


-- wli
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-04-05 06:13    [W:0.058 / U:2.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site