mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-16 00:00:12 +02:00
ed4359bb26ead096452394bdb40802df75be19dc
Register the signal handler that wakes up someone through a self-pipe. That someone doesn't yet exist, though. Some dependencies (nix, lazy_static) added to speed up the prototyping process. They are likely to be dropped in some future commits. Some features (eg. preserving the previous signal handlers) are still missing.
tokio-signal
An implementation of Unix signal handling for Tokio
Usage
First, add this to your Cargo.toml:
[dependencies]
tokio-signal = "0.1"
Next, add this to your crate:
extern crate tokio_signal;
License
tokio-signal is primarily distributed under the terms of both the MIT
license and the Apache License (Version 2.0), with portions covered by various
BSD-like licenses.
See LICENSE-APACHE, and LICENSE-MIT for details.
Languages
Rust
100%