mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-06 00:00:10 +02:00
signal: panic
This commit is contained in:
committed by
Carl Lerche
parent
1fdff707b8
commit
f759e4d70f
@@ -11,7 +11,7 @@ fn main() {
|
||||
let mut core = Core::new().unwrap();
|
||||
|
||||
// on Unix, we can listen to whatever signal we want, in this case: SIGHUP
|
||||
let stream = Signal::new(SIGHUP, &core.handle()).flatten_stream();
|
||||
let stream = Signal::new(SIGHUP, &core.handle().new_tokio_handle()).flatten_stream();
|
||||
|
||||
println!("Waiting for SIGHUPS (Ctrl+C to quit)");
|
||||
println!(
|
||||
|
||||
Reference in New Issue
Block a user