summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2016-06-29 11:54:03 -0400
committerRich Felker <dalias@aerifal.cx>2016-06-29 11:54:03 -0400
commitb3bbc7b16067c82e528d3de580f807b8316f096e (patch)
treea9670871f758888406a3f8c321631b51be230bfb /include
parent4da0bc5ef8e0fdea65335599d947d74b7b321daa (diff)
downloadmusl-b3bbc7b16067c82e528d3de580f807b8316f096e.tar.gz
fix incorrect definition of RUSAGE_CHILDREN in sys/resource.h
the kernel ABI value for RUSAGE_CHILDREN is -1, not 1. the latter is actually interpreted as RUSAGE_THREAD, to obtain values for just the calling thread and not the whole process.
Diffstat (limited to 'include')
-rw-r--r--include/sys/resource.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sys/resource.h b/include/sys/resource.h
index cc33de74..ef02a391 100644
--- a/include/sys/resource.h
+++ b/include/sys/resource.h
@@ -68,7 +68,7 @@ int prlimit(pid_t, int, const struct rlimit *, struct rlimit *);
#define PRIO_USER 2
#define RUSAGE_SELF 0
-#define RUSAGE_CHILDREN 1
+#define RUSAGE_CHILDREN (-1)
#define RLIM_INFINITY (~0ULL)
#define RLIM_SAVED_CUR RLIM_INFINITY