diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2023-04-02 13:20:33 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-02 13:20:33 +0000 |
commit | 7b0cd342b7425a0de0bde9a09c3ec17f046c76b4 (patch) | |
tree | 25543e1e260debfaec111868e721a039021e8000 /src/sys/utsname.rs | |
parent | f38b721f27803acfb39a4f7e7a16cae18d1953c7 (diff) | |
parent | 7830042a6572bc1bb86429299ca1bc202c1a0710 (diff) | |
download | nix-7b0cd342b7425a0de0bde9a09c3ec17f046c76b4.zip |
Merge #1999
1999: inotify: Add AsFd to allow using with epoll (issue #1998) r=asomers a=VorpalBlade
This resolves issue #1998 and allows `Inotify` to be used by `Epoll` by adding AsFd.
I'm not entirely sure about the unit test. Maybe it would be possible to do a more comperhensive check by contructing inotify using `from_raw_fd` and checking that I get the same value back. However, that would basically mean duplicating `Inotify::new` and that feels a bit pointless.
Another option would be to create an integration test to combine `Inotify` and `Epoll`.
Fixes #1998
Co-authored-by: Arvid Norlander <VorpalBlade@users.noreply.github.com>
Diffstat (limited to 'src/sys/utsname.rs')
0 files changed, 0 insertions, 0 deletions