1
0
mirror of git://git.musl-libc.org/musl synced 2025-02-04 13:01:37 +00:00

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.
This commit is contained in:
Rich Felker 2016-06-29 11:54:03 -04:00
parent 4da0bc5ef8
commit b3bbc7b160

View File

@ -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