core: add EXIT signal

EXIT is supported by GNU (see 993ca832d2/lib/sig2str.c (L258)),
so we have to support it too to pass GNU tests.
This commit is contained in:
Michael Debertol 2021-06-10 18:28:37 +02:00
parent ed646090c2
commit ceb5a2998c

View file

@ -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,