Skip to content

Commit

Permalink
Define our own Signal type
Browse files Browse the repository at this point in the history
This is part of #353. This commit prepares for the transition to our own
Signal type by defining the type and implementing some basic operations.
  • Loading branch information
magicant committed May 11, 2024
1 parent b939514 commit 4f57be6
Show file tree
Hide file tree
Showing 2 changed files with 706 additions and 2 deletions.
5 changes: 3 additions & 2 deletions yash-env/src/trap/cond.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@

//! Items that define trap conditions

pub mod signal;

#[cfg(doc)]
use super::state::Action;
use std::ffi::c_int;
// TODO Support real-time signals
#[doc(no_inline)]
pub use nix::sys::signal::Signal;
use std::ffi::c_int;

/// Condition under which an [`Action`] is executed
#[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
Expand Down

0 comments on commit 4f57be6

Please sign in to comment.