Skip to content

Commit 03ab6d8

Browse files
committed
Fix MIPS-specific signal bug
1 parent c9fc2d8 commit 03ab6d8

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

std/src/sys/unix/process/process_unix.rs

+10-1
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,16 @@ fn signal_string(signal: i32) -> &'static str {
732732
libc::SIGWINCH => " (SIGWINCH)",
733733
libc::SIGIO => " (SIGIO)",
734734
libc::SIGSYS => " (SIGSYS)",
735-
#[cfg(target_os = "linux")]
735+
// For information on Linux signals, run `man 7 signal`
736+
#[cfg(all(
737+
target_os = "linux",
738+
any(
739+
target_arch = "x86_64",
740+
target_arch = "x86",
741+
target_arch = "arm",
742+
target_arch = "aarch64"
743+
)
744+
))]
736745
libc::SIGSTKFLT => " (SIGSTKFLT)",
737746
#[cfg(target_os = "linux")]
738747
libc::SIGPWR => " (SIGPWR)",

0 commit comments

Comments
 (0)