diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2022-03-05 11:37:53 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2022-03-09 16:56:59 +0100 |
commit | df417e295bb1b34a76d9eec486d4759504da25ac (patch) | |
tree | 2f85c5419078422fdc032779fabe44a37314ac39 /src/sys/aio.rs | |
parent | ff08ff7732f6410b733b781ac3dd8be8f83ec6a5 (diff) | |
download | nix-df417e295bb1b34a76d9eec486d4759504da25ac.zip |
wait: implement waitid()
waitid() has a number of additional features that waitpid() is missing:
- WNOWAIT is only accepted for waitid() on Linux (and possibly other
platforms)
- Support for waiting on PID file descriptors on Linux
For now support is added for all platforms with waitid() that have proper
siginfo_t support in libc. NetBSD support is currently a work in progress
[1].
Tests for the signal/exit code are currently skipped on MIPS platforms due
to bugs in qemu-user's translation of siginfo_t (fixed in [2] and [3]; the
second fix is not in a released qemu version yet).
[1] https://github.com/rust-lang/libc/pull/2476
[2] https://lists.nongnu.org/archive/html/qemu-devel/2021-01/msg04810.html
[3] https://lists.nongnu.org/archive/html/qemu-devel/2021-10/msg05433.html
Diffstat (limited to 'src/sys/aio.rs')
0 files changed, 0 insertions, 0 deletions