We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b2c7ba commit 970f792Copy full SHA for 970f792
Sources/Basics/Cancellator.swift
@@ -73,7 +73,7 @@ public final class Cancellator: Cancellable {
73
// Terminate all processes on receiving an interrupt signal.
74
try? self?.cancel(deadline: .now() + .seconds(30))
75
76
-#if os(macOS) || targetEnvironment(macCatalyst) || os(OpenBSD)
+#if canImport(Darwin) || os(OpenBSD)
77
// Install the default signal handler.
78
var action = sigaction()
79
action.__sigaction_u.__sa_handler = SIG_DFL
0 commit comments