Supports POSIX. Untested on Windows (Not tested).
Solve issues:
- Support Windows
- Consider using sigaction() instead of signal()
- Signal handlers should be unsafe functions
git clone https://github.com/adjivas/sig.git signal && cd signal
cargo build
- cargo run --example getpid
- cargo run --example usr1
.
|__ Cargo.toml
|__ LICENSE
|__ README.md
|__ examples
| |__ usr1.rs
| \__ getpid.rs
\__ src
|__ ffi.rs
|__ lib.rs
\__ macros.rs
Sig's code in this repo is licensed under either of:
uses the APACHE and MIT license.
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0).
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT).
at your option.
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.