Skip to content

Commit

Permalink
Fix MIPS-specific signal bug
Browse files Browse the repository at this point in the history
  • Loading branch information
notriddle committed Jun 2, 2022
1 parent 267a6c8 commit 22791bb
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion library/std/src/sys/unix/process/process_unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,16 @@ fn signal_string(signal: i32) -> &'static str {
libc::SIGWINCH => " (SIGWINCH)",
libc::SIGIO => " (SIGIO)",
libc::SIGSYS => " (SIGSYS)",
#[cfg(target_os = "linux")]
// For information on Linux signals, run `man 7 signal`
#[cfg(all(
target_os = "linux",
any(
target_arch = "x86_64",
target_arch = "x86",
target_arch = "arm",
target_arch = "aarch64"
)
))]
libc::SIGSTKFLT => " (SIGSTKFLT)",
#[cfg(target_os = "linux")]
libc::SIGPWR => " (SIGPWR)",
Expand Down

0 comments on commit 22791bb

Please sign in to comment.