signal: update instructions in Ctrl-C example (#1270)

Fixes: #1248
This commit is contained in:
Thomas Lacroix
2019-07-07 09:49:19 -07:00
committed by Ivan Petkov
parent 7b86acb71d
commit e07a03b3c5
+3 -6
View File
@@ -22,12 +22,9 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
let mut counter = 0;
println!(
"This program is now waiting for you to press Ctrl+C {0} times.
* If running via `cargo run --example ctrl-c`, Ctrl+C also kills it, \
due to https://github.com/rust-lang-nursery/rustup.rs/issues/806
* If running the binary directly, the Ctrl+C is properly trapped.
Terminate by repeating Ctrl+C {0} times, or ahead of time by \
opening a second terminal and issuing `pkill -sigkil ctrl-c`",
"This program is now waiting for you to press Ctrl+C {0} times. \
Terminate by repeating Ctrl+C {0} times, or ahead of time by opening \
a second terminal and issuing `pkill -sigkil ctrl-c`.",
STOP_AFTER
);