diff options
| author | Michael Howell <michael@notriddle.com> | 2022-06-02 15:18:16 -0700 |
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2022-06-02 15:28:38 -0700 |
| commit | 22791bbccd6dd8c1c3981fc9cb662774f2117d3b (patch) | |
| tree | 80e479487382a7074729ca960fd00945295a25bf /library/std/src/sys/unix/process/process_unix.rs | |
| parent | 267a6c815663582e651b32dcd33c07da05cd3371 (diff) | |
| download | rust-22791bbccd6dd8c1c3981fc9cb662774f2117d3b.tar.gz rust-22791bbccd6dd8c1c3981fc9cb662774f2117d3b.zip | |
Fix MIPS-specific signal bug
Diffstat (limited to 'library/std/src/sys/unix/process/process_unix.rs')
| -rw-r--r-- | library/std/src/sys/unix/process/process_unix.rs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/library/std/src/sys/unix/process/process_unix.rs b/library/std/src/sys/unix/process/process_unix.rs index 31f1ea76701..5aae9240299 100644 --- a/library/std/src/sys/unix/process/process_unix.rs +++ b/library/std/src/sys/unix/process/process_unix.rs @@ -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)", |
