mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-29 05:03:46 +08: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 |