mirror of
https://github.com/shadowsocks/shadowsocks-rust.git
synced 2026-11-07 00:13:33 +00:00
11 lines
194 B
Rust
11 lines
194 B
Rust
use log::info;
|
|
use std::io;
|
|
use tokio::signal::ctrl_c;
|
|
|
|
pub async fn create_signal_monitor() -> io::Result<()> {
|
|
let _ = ctrl_c().await;
|
|
info!("received CTRL-C, exiting");
|
|
|
|
Ok(())
|
|
}
|