process: Bump tokio-signal version to 0.2

This commit is contained in:
Ivan Petkov
2019-06-24 16:56:52 -07:00
parent de9b401457
commit e6b044a820
6 changed files with 88 additions and 45 deletions
+3 -3
View File
@@ -37,7 +37,7 @@ use mio;
use self::tokio_signal::unix::Signal;
use std::fmt;
use tokio_io::IoFuture;
use tokio_core::reactor::{Handle, PollEvented};
use tokio_reactor::{Handle, PollEvented};
#[must_use = "futures do nothing unless polled"]
pub struct Child {
@@ -62,7 +62,7 @@ impl Child {
Child {
inner: inner,
reaped: false,
sigchld: Signal::new(libc::SIGCHLD, handle).flatten_stream(),
sigchld: Signal::with_handle(libc::SIGCHLD, handle).flatten_stream(),
}
}
@@ -224,6 +224,6 @@ fn stdio<T>(option: Option<T>, handle: &Handle)
return Err(io::Error::last_os_error())
}
}
let io = try!(PollEvented::new(Fd(io), handle));
let io = try!(PollEvented::new_with_handle(Fd(io), handle));
Ok(Some(io))
}