mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-14 17:07:44 +00:00
1f4c233dfb
Signal is a newtype around NonZeroI32. We could use NonZeroU8 since all signal values comfortably fit, but using i32 lets us avoid a fallible attempt at narrowing values returned from the system as integers to the narrower u8 type. Known signals are explicitly defined as constants and can be matched against with equality or with pattern matching in a `match` block. Unknown signal values are passed-through without causing any issues. We're using per-OS targeting to enable certain libc SIGXXX values - we could change this to dynamically detecting what's available in build.rs but then it might not match what libc exposes, still giving us build failures. |
||
---|---|---|
.. | ||
src | ||
widestring-suffix | ||
build.rs | ||
Cargo.lock | ||
Cargo.toml |