13 unstable releases

0.7.0 Aug 10, 2019
0.6.0 Jul 23, 2018
0.5.1 Jun 1, 2018
0.4.1 Aug 24, 2017
0.1.3 Oct 19, 2015
Download history 193/week @ 2019-12-02 260/week @ 2019-12-09 197/week @ 2019-12-16 115/week @ 2019-12-23 92/week @ 2019-12-30 196/week @ 2020-01-06 158/week @ 2020-01-13 132/week @ 2020-01-20 153/week @ 2020-01-27 111/week @ 2020-02-03 206/week @ 2020-02-10 132/week @ 2020-02-17 255/week @ 2020-02-24 226/week @ 2020-03-02 170/week @ 2020-03-09 159/week @ 2020-03-16

774 downloads per month
Used in 3 crates

MIT/Apache

14KB
226 lines

Rust Signal

Docs | Github | Crate

A higher-level library for handling unix signals. Currently more focused on writing process supervisors, but may be used (and extended) for other purposes too.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.


lib.rs:

Signal handling library

Docs | Github | Crate

The library is focused on higher-level abstractions for handling signals. All low-level stuff should be in nix.

Currently we have two mechanisms for handling exeptions:

  1. The exec_handler module for replacing process with newly runned command designed as crash safety measure
  2. The Trap mechanism that masks out signals and allows wait for them explicitly

Both are specifically suited for making process supervisors.

Note, masking out signals may also be achieved by trap (just don't call either wait() or next())

On TODO list:

  • signalfd

The library tested only on linux

Dependencies

~1MB
~19K SLoC