bytecodealliance / bytecodealliance/rustix

Please support rusage argument of waitid

Open
#906 0 comments 3 reactions 0 assignees View on GitHub
enhancement
Dominant language
Rust
Stars
2.1k
Forks
294
Avg merge
4h 7m
Merged PRs (30d)
2

Description

On Linux, the waitid syscall has a fifth argument, a pointer to a `struct rusage`, which works like the corresponding parameter to `wait3`/`wait4`.

Please consider passing an appropriate buffer to this parameter, and putting the result into the opaque `WaitidStatus` struct, with a `cfg(linux_kernel)` function to return the rusage struct.

On `linux_raw` this should be easy (the implementation already has to pass this parameter). On the libc backend, this will require using `syscall!`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.