13 unstable releases

Uses old Rust 2015

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

#594 in Unix APIs

Download history 221/week @ 2024-07-22 236/week @ 2024-07-29 321/week @ 2024-08-05 248/week @ 2024-08-12 248/week @ 2024-08-19 330/week @ 2024-08-26 229/week @ 2024-09-02 394/week @ 2024-09-09 219/week @ 2024-09-16 233/week @ 2024-09-23 240/week @ 2024-09-30 168/week @ 2024-10-07 216/week @ 2024-10-14 183/week @ 2024-10-21 218/week @ 2024-10-28 265/week @ 2024-11-04

892 downloads per month
Used in 5 crates (4 directly)

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

~1.5MB
~36K SLoC