signal: Implement the wake-up part of the new signal handling

Register the signal handler that wakes up someone through a self-pipe.
That someone doesn't yet exist, though.

Some dependencies (nix, lazy_static) added to speed up the prototyping
process. They are likely to be dropped in some future commits.

Some features (eg. preserving the previous signal handlers) are still
missing.
This commit is contained in:
Michal 'vorner' Vaner
2018-09-10 11:29:57 -07:00
committed by Carl Lerche
parent 4142dc2fae
commit ed4359bb26
3 changed files with 76 additions and 3 deletions
+2
View File
@@ -25,6 +25,8 @@
#[macro_use]
extern crate futures;
extern crate tokio_core;
#[macro_use]
extern crate lazy_static;
use futures::Future;
use futures::stream::Stream;