tools: add async signalfd handler

This provides a Stream<Item = siginfo> via nix' signalfd,
by wrapping it in tokio's PollEvented2 struct to allow
polling via tokio's event loop.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller
2019-03-12 08:04:28 +01:00
parent d5c34d98c0
commit f54c19989c
2 changed files with 85 additions and 0 deletions
+1
View File
@@ -27,6 +27,7 @@ pub mod ticket;
pub mod borrow;
pub mod fs;
pub mod tty;
pub mod signalfd;
#[macro_use]
mod file_logger;