mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-25 12:00:35 +00:00
tokio: move signal
and process
reexports to crate root (#1643)
This commit is contained in:
parent
804dbd6f8e
commit
741bef8fe1
@ -29,8 +29,10 @@ jobs:
|
||||
- codec
|
||||
- fs
|
||||
- io
|
||||
- rt-full
|
||||
- net
|
||||
- process
|
||||
- rt-full
|
||||
- signal
|
||||
- sync
|
||||
- tcp
|
||||
- timer
|
||||
|
@ -42,7 +42,7 @@ fn run_test() {
|
||||
finished_clone.store(true, Ordering::SeqCst);
|
||||
});
|
||||
|
||||
thread::sleep(Duration::from_millis(100));
|
||||
thread::sleep(Duration::from_millis(1000));
|
||||
assert!(
|
||||
finished.load(Ordering::SeqCst),
|
||||
"FINISHED flag not set, maybe we deadlocked?"
|
||||
|
@ -29,7 +29,9 @@ default = [
|
||||
"fs",
|
||||
"io",
|
||||
"net",
|
||||
"process",
|
||||
"rt-full",
|
||||
"signal",
|
||||
"sync",
|
||||
"timer",
|
||||
]
|
||||
|
@ -92,6 +92,10 @@ pub mod io;
|
||||
#[cfg(any(feature = "tcp", feature = "udp", feature = "uds"))]
|
||||
pub mod net;
|
||||
pub mod prelude;
|
||||
#[cfg(feature = "process")]
|
||||
pub mod process;
|
||||
#[cfg(feature = "signal")]
|
||||
pub mod signal;
|
||||
pub mod stream;
|
||||
#[cfg(feature = "sync")]
|
||||
pub mod sync;
|
||||
|
@ -57,20 +57,6 @@ pub mod udp {
|
||||
#[cfg(feature = "udp")]
|
||||
pub use self::udp::{UdpFramed, UdpSocket};
|
||||
|
||||
#[cfg(feature = "signal")]
|
||||
pub mod signal {
|
||||
//! Asynchronous signal handling for `tokio`. ctrl-C notifications are
|
||||
//! supported on both unix and windows systems. For finer grained signal
|
||||
//! handling support on unix systems, see `tokio_net::signal::unix::Signal`.
|
||||
pub use tokio_net::signal::ctrl_c;
|
||||
}
|
||||
|
||||
#[cfg(feature = "process")]
|
||||
pub mod process {
|
||||
//! An implementation of asynchronous process management for Tokio.
|
||||
pub use tokio_net::process::{Child, ChildStderr, ChildStdin, ChildStdout, Command};
|
||||
}
|
||||
|
||||
#[cfg(all(unix, feature = "uds"))]
|
||||
pub mod unix {
|
||||
//! Unix domain socket bindings for `tokio` (only available on unix systems).
|
||||
|
2
tokio/src/process.rs
Normal file
2
tokio/src/process.rs
Normal file
@ -0,0 +1,2 @@
|
||||
//! An implementation of asynchronous process management for Tokio.
|
||||
pub use tokio_net::process::{Child, ChildStderr, ChildStdin, ChildStdout, Command};
|
4
tokio/src/signal.rs
Normal file
4
tokio/src/signal.rs
Normal file
@ -0,0 +1,4 @@
|
||||
//! Asynchronous signal handling for `tokio`. ctrl-C notifications are
|
||||
//! supported on both unix and windows systems. For finer grained signal
|
||||
//! handling support on unix systems, see `tokio_net::signal::unix::Signal`.
|
||||
pub use tokio_net::signal::ctrl_c;
|
Loading…
x
Reference in New Issue
Block a user