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

#474 in Unix APIs

Download history 225/week @ 2023-11-27 343/week @ 2023-12-04 187/week @ 2023-12-11 312/week @ 2023-12-18 202/week @ 2023-12-25 204/week @ 2024-01-01 207/week @ 2024-01-08 345/week @ 2024-01-15 1104/week @ 2024-01-22 809/week @ 2024-01-29 552/week @ 2024-02-05 465/week @ 2024-02-12 584/week @ 2024-02-19 621/week @ 2024-02-26 492/week @ 2024-03-04 171/week @ 2024-03-11

1,997 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
~34K SLoC