Skip to content

Commit

Permalink
Make is_user_signaled a private function
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 authored and squell committed Oct 9, 2024
1 parent cd98e2a commit ee68956
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/system/signal/info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ impl SignalInfo {
pub(super) const SIZE: usize = std::mem::size_of::<Self>();

/// Returns whether the signal was sent by the user or not.
pub(crate) fn is_user_signaled(&self) -> bool {
fn is_user_signaled(&self) -> bool {
// This matches the definition of the SI_FROMUSER macro.
self.info.si_code <= 0
}
Expand Down

0 comments on commit ee68956

Please sign in to comment.