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 committed 2019-03-12 08:04:28 +01:00
1 parent d5c34d98c0
commit f54c19989c
2 files changed
+85

No files matched your search

+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;