Function shadowsocks_rust::monitor::create_signal_monitor[][src]

pub async fn create_signal_monitor() -> Result<()>
Expand description

Create a monitor future for signals

It will exit when received SIGTERM or SIGINT.