diff options
| author | Mads Marquart <mads@marquart.dk> | 2024-04-28 17:37:04 +0200 |
|---|---|---|
| committer | Mads Marquart <mads@marquart.dk> | 2024-04-28 21:10:32 +0200 |
| commit | a6d9da6b2acbf6985199c99e6dbdc1847ed3ead3 (patch) | |
| tree | 154917d843afd968b1b9fb7fd10f89a0b8286e54 | |
| parent | 79c6d9196658c1f304972bae3c5a6567816e9888 (diff) | |
| download | rust-a6d9da6b2acbf6985199c99e6dbdc1847ed3ead3.tar.gz rust-a6d9da6b2acbf6985199c99e6dbdc1847ed3ead3.zip | |
Fix SIGEMT and SIGINFO parsing on watchOS and visionOS
| -rw-r--r-- | library/std/src/sys/pal/unix/process/process_unix.rs | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/library/std/src/sys/pal/unix/process/process_unix.rs b/library/std/src/sys/pal/unix/process/process_unix.rs index d65657790c4..0ce09c90bbd 100644 --- a/library/std/src/sys/pal/unix/process/process_unix.rs +++ b/library/std/src/sys/pal/unix/process/process_unix.rs @@ -1040,24 +1040,20 @@ fn signal_string(signal: i32) -> &'static str { #[cfg(any(target_os = "linux", target_os = "nto"))] libc::SIGPWR => " (SIGPWR)", #[cfg(any( - target_os = "macos", - target_os = "ios", - target_os = "tvos", target_os = "freebsd", target_os = "netbsd", target_os = "openbsd", target_os = "dragonfly", target_os = "nto", + target_vendor = "apple", ))] libc::SIGEMT => " (SIGEMT)", #[cfg(any( - target_os = "macos", - target_os = "ios", - target_os = "tvos", target_os = "freebsd", target_os = "netbsd", target_os = "openbsd", - target_os = "dragonfly" + target_os = "dragonfly", + target_vendor = "apple", ))] libc::SIGINFO => " (SIGINFO)", #[cfg(target_os = "hurd")] |
