ptdecker / signal-hook

Rust library allowing to register multiple handlers for the same signal

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SIGINT Handler

This SIGINT handler is based upon the signal-hook library created by Michal Vaner ('vorner') and Thomas Himmelstoss and discussed by James Elford in his "Working with signals in Rust" article. This article nicely explains the challenges of properly handling signals.

This crate takes his work and strips out the excellent generic signal handling implemented in the signal-hook library to create a handler for just SIGINT for use in other projects.

License

James' original work is licensed under the MIT license so that is preserved here.

About

Rust library allowing to register multiple handlers for the same signal

License:MIT License


Languages

Language:Rust 99.0%Language:C 1.0%