mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
core: add EXIT signal
EXIT is supported by GNU (see https://github.com/coreutils/gnulib/blob/993ca832d232c33da1d2bb07e91acd6d301ebea0/lib/sig2str.c#L258), so we have to support it too to pass GNU tests.
This commit is contained in:
@@ -29,7 +29,11 @@ Linux Programmer's Manual
|
||||
*/
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
pub static ALL_SIGNALS: [Signal<'static>; 31] = [
|
||||
pub static ALL_SIGNALS: [Signal<'static>; 32] = [
|
||||
Signal {
|
||||
name: "EXIT",
|
||||
value: 0,
|
||||
},
|
||||
Signal {
|
||||
name: "HUP",
|
||||
value: 1,
|
||||
@@ -198,7 +202,11 @@ No Name Default Action Description
|
||||
*/
|
||||
|
||||
#[cfg(any(target_vendor = "apple", target_os = "freebsd"))]
|
||||
pub static ALL_SIGNALS: [Signal<'static>; 31] = [
|
||||
pub static ALL_SIGNALS: [Signal<'static>; 32] = [
|
||||
Signal {
|
||||
name: "EXIT",
|
||||
value: 0,
|
||||
},
|
||||
Signal {
|
||||
name: "HUP",
|
||||
value: 1,
|
||||
|
||||
Reference in New Issue
Block a user