Skip to content

Commit 31d3d1e

Browse files
committed
Fix SIGEMT and SIGINFO parsing on watchOS and visionOS
1 parent fb0aa42 commit 31d3d1e

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

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

+3-7
Original file line numberDiff line numberDiff line change
@@ -1040,24 +1040,20 @@ fn signal_string(signal: i32) -> &'static str {
10401040
#[cfg(any(target_os = "linux", target_os = "nto"))]
10411041
libc::SIGPWR => " (SIGPWR)",
10421042
#[cfg(any(
1043-
target_os = "macos",
1044-
target_os = "ios",
1045-
target_os = "tvos",
10461043
target_os = "freebsd",
10471044
target_os = "netbsd",
10481045
target_os = "openbsd",
10491046
target_os = "dragonfly",
10501047
target_os = "nto",
1048+
target_vendor = "apple",
10511049
))]
10521050
libc::SIGEMT => " (SIGEMT)",
10531051
#[cfg(any(
1054-
target_os = "macos",
1055-
target_os = "ios",
1056-
target_os = "tvos",
10571052
target_os = "freebsd",
10581053
target_os = "netbsd",
10591054
target_os = "openbsd",
1060-
target_os = "dragonfly"
1055+
target_os = "dragonfly",
1056+
target_vendor = "apple",
10611057
))]
10621058
libc::SIGINFO => " (SIGINFO)",
10631059
#[cfg(target_os = "hurd")]

0 commit comments

Comments
 (0)