projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4da0bc5
)
fix incorrect definition of RUSAGE_CHILDREN in sys/resource.h
author
Rich Felker
<dalias@aerifal.cx>
Wed, 29 Jun 2016 15:54:03 +0000
(11:54 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Wed, 29 Jun 2016 15:54:03 +0000
(11:54 -0400)
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.
include/sys/resource.h
patch
|
blob
|
history
diff --git
a/include/sys/resource.h
b/include/sys/resource.h
index cc33de7445e28e50e2f056f3861bd6173ff83167..ef02a391de751be58f2885b28af883d2de381516 100644
(file)
--- 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