signal: move into tokio-net (#1463)

This commit is contained in:
Carl Lerche
2019-08-17 13:43:55 -07:00
committed by Ivan Petkov
parent a83f5e4ba6
commit c187cd75b6
28 changed files with 109 additions and 383 deletions
+1 -1
View File
@@ -55,4 +55,4 @@ lazy_static = "1.3"
libc = "0.2"
log = "0.4"
mio = "0.6.5"
tokio-signal = { version = "=0.3.0-alpha.1", path = "../tokio-signal" }
tokio-net = { version = "=0.2.0-alpha.1", path = "../tokio-net", features = ["signal"] }
+2 -2
View File
@@ -11,7 +11,7 @@
//!
//! Our best approximation here is to check *all spawned processes* for all
//! SIGCHLD signals received. To do that we create a `Signal`, implemented in
//! the `tokio-signal` crate, which is a stream over signals being received.
//! the `tokio-net` crate, which is a stream over signals being received.
//!
//! Later when we poll the process's exit status we simply check to see if a
//! SIGCHLD has happened since we last checked, and while that returns "yes" we
@@ -30,8 +30,8 @@ use super::SpawnedChild;
use crate::kill::Kill;
use tokio_net::driver::Handle;
use tokio_net::signal::unix::{Signal, SignalKind};
use tokio_net::util::PollEvented;
use tokio_signal::unix::{Signal, SignalKind};
use mio::event::Evented;
use mio::unix::{EventedFd, UnixReady};