Build Information
Successful build of swift-signal-handling, reference 1.1.4 (c50ae0), with Swift 6.2 for macOS (SPM) on 20 Nov 2025 18:40:28 UTC.
Swift 6 data race errors: 0
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.0.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/xcode-actions/swift-signal-handling.git
Reference: 1.1.4
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/xcode-actions/swift-signal-handling
* tag 1.1.4 -> FETCH_HEAD
HEAD is now at c50ae09 Remove hangup signal from list of forwarded to subprocesses signals
Cloned https://github.com/xcode-actions/swift-signal-handling.git
Revision (git rev-parse @):
c50ae0975bcbae92cbaa972f99649314a0e77bca
SUCCESS checkout https://github.com/xcode-actions/swift-signal-handling.git at 1.1.4
Fetching https://github.com/xcode-actions/clt-logger.git
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-argument-parser.git
[1/5182] Fetching swift-system
[53/6051] Fetching swift-system, clt-logger
[366/11082] Fetching swift-system, clt-logger, swift-log
[2811/27759] Fetching swift-system, clt-logger, swift-log, swift-argument-parser
Fetched https://github.com/apple/swift-log.git from cache (1.29s)
Fetched https://github.com/xcode-actions/clt-logger.git from cache (1.29s)
[9519/21859] Fetching swift-system, swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser.git from cache (1.61s)
Fetched https://github.com/apple/swift-system.git from cache (1.61s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.2.1 (4.40s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.5.4 (0.69s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.0.3 (0.73s)
Computing version for https://github.com/xcode-actions/clt-logger.git
Computed https://github.com/xcode-actions/clt-logger.git at 1.0.0-beta.4 (0.61s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.5.4
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.0.3
Creating working copy for https://github.com/xcode-actions/clt-logger.git
Working copy of https://github.com/xcode-actions/clt-logger.git resolved at 1.0.0-beta.4
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.2.1
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "swift-signal-handling",
"name": "swift-signal-handling",
"url": "https://github.com/xcode-actions/swift-signal-handling.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-signal-handling",
"dependencies": [
{
"identity": "swift-log",
"name": "swift-log",
"url": "https://github.com/apple/swift-log.git",
"version": "1.6.4",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-log",
"dependencies": [
]
},
{
"identity": "swift-system",
"name": "swift-system",
"url": "https://github.com/apple/swift-system.git",
"version": "1.6.3",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-system",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/xcode-actions/swift-signal-handling.git
[1/558] Fetching swift-signal-handling
Fetched https://github.com/xcode-actions/swift-signal-handling.git from cache (0.81s)
Fetching https://github.com/apple/swift-system.git from cache
Fetching https://github.com/apple/swift-log.git from cache
Fetched https://github.com/apple/swift-log.git from cache (0.57s)
Fetched https://github.com/apple/swift-system.git from cache (0.57s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.4 (1.15s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.6.3 (0.61s)
Creating working copy for https://github.com/xcode-actions/swift-signal-handling.git
Working copy of https://github.com/xcode-actions/swift-signal-handling.git resolved at 1.1.4 (c50ae09)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.4
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.6.3
warning: '.resolve-product-dependencies': dependency 'swift-signal-handling' is not used by any target
Found 2 product dependencies
- swift-log
- swift-system
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/xcode-actions/swift-signal-handling.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0.app xcrun swift build --arch arm64
Building for debugging...
[0/13] Write sources
[4/13] Write signal-handling-tests-helper-entitlement.plist
[4/13] Write sources
[8/13] Compiling CSystem shims.c
[9/13] Write swift-version-49B95AFC49DCD68C.txt
[11/41] Emitting module ArgumentParserToolInfo
[12/41] Compiling ArgumentParserToolInfo ToolInfo.swift
[13/76] Compiling ArgumentParser ParsableArguments.swift
[14/76] Compiling ArgumentParser ParsableArgumentsValidation.swift
[15/76] Compiling Logging MetadataProvider.swift
[16/78] Emitting module SystemPackage
[17/78] Compiling ArgumentParser EnumerableFlag.swift
[18/78] Compiling ArgumentParser ExpressibleByArgument.swift
[19/78] Compiling ArgumentParser DumpHelpGenerator.swift
[20/78] Compiling ArgumentParser HelpCommand.swift
[21/78] Compiling ArgumentParser Option.swift
[22/78] Compiling ArgumentParser OptionGroup.swift
[23/78] Compiling ArgumentParser HelpGenerator.swift
[24/78] Compiling ArgumentParser CommandConfiguration.swift
[25/78] Compiling ArgumentParser Flag.swift
[26/78] Compiling ArgumentParser NameSpecification.swift
[27/78] Compiling Logging LogHandler.swift
[28/78] Compiling Logging Locks.swift
[29/78] Emitting module Logging
[30/78] Compiling Logging Logging.swift
[31/78] Compiling ArgumentParser CompletionKind.swift
[32/78] Compiling ArgumentParser Errors.swift
[33/78] Compiling ArgumentParser BashCompletionsGenerator.swift
[34/78] Compiling ArgumentParser CompletionsGenerator.swift
[35/78] Compiling ArgumentParser FishCompletionsGenerator.swift
[36/78] Compiling ArgumentParser ZshCompletionsGenerator.swift
[37/78] Compiling ArgumentParser Argument.swift
[38/78] Compiling ArgumentParser ArgumentHelp.swift
[39/84] Compiling SystemPackage Util.swift
[40/84] Compiling SystemPackage UtilConsumers.swift
[41/95] Emitting module ArgumentParser
[42/98] Compiling ArgumentParser SequenceExtensions.swift
[43/98] Compiling ArgumentParser StringExtensions.swift
[44/98] Compiling ArgumentParser Tree.swift
[45/98] Compiling SignalHandling Sigaction.swift
[46/98] Compiling SignalHandling SigactionFlag.swift
[56/98] Compiling ArgumentParser ArgumentDefinition.swift
[68/98] Compiling ArgumentParser ArgumentSet.swift
[69/98] Compiling ArgumentParser CommandParser.swift
[70/98] Compiling ArgumentParser InputOrigin.swift
[71/98] Compiling ArgumentParser Name.swift
[72/98] Compiling ArgumentParser Parsed.swift
[73/98] Compiling ArgumentParser ParsedValues.swift
[74/98] Compiling ArgumentParser ParserError.swift
[75/98] Compiling ArgumentParser SplitArguments.swift
[76/98] Compiling ArgumentParser MessageInfo.swift
[77/98] Compiling ArgumentParser UsageGenerator.swift
[78/98] Compiling ArgumentParser CollectionExtensions.swift
[79/98] Compiling SignalHandling SignalHandlingError.swift
[80/98] Compiling SignalHandling SignalHandlingConfig.swift
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/SignalHandlingConfig.swift:9:20: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
7 | public enum SignalHandlingConfig {
8 |
9 | public static var logger: Logging.Logger? = {
| |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logger' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | return Logger(label: "com.xcode-actions.signal-handling")
11 | }()
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[81/99] Compiling SignalHandling DelayedSigaction.swift
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/DelayedSigaction.swift:10:21: warning: static property 'latestID' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
8 | public struct DelayedSigaction : Hashable {
9 |
10 | private static var latestID = 0
| |- warning: static property 'latestID' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'latestID' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'latestID' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 |
12 | internal var id: Int
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[82/99] Emitting module SignalHandling
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:9:20: warning: static property 'ignoreAction' is not concurrency-safe because non-'Sendable' type 'Sigaction' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 |
6 |
7 | public struct Sigaction : Equatable, RawRepresentable {
| `- note: consider making struct 'Sigaction' conform to the 'Sendable' protocol
8 |
9 | public static let ignoreAction = Sigaction(handler: .ignoreHandler)
| |- warning: static property 'ignoreAction' is not concurrency-safe because non-'Sendable' type 'Sigaction' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'ignoreAction' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | public static let defaultAction = Sigaction(handler: .defaultHandler)
11 |
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:10:20: warning: static property 'defaultAction' is not concurrency-safe because non-'Sendable' type 'Sigaction' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 |
6 |
7 | public struct Sigaction : Equatable, RawRepresentable {
| `- note: consider making struct 'Sigaction' conform to the 'Sendable' protocol
8 |
9 | public static let ignoreAction = Sigaction(handler: .ignoreHandler)
10 | public static let defaultAction = Sigaction(handler: .defaultHandler)
| |- warning: static property 'defaultAction' is not concurrency-safe because non-'Sendable' type 'Sigaction' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'defaultAction' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 |
12 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:11:20: warning: static property 'noChildStop' is not concurrency-safe because non-'Sendable' type 'SigactionFlags' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
4 |
5 | /** Flag list is from `sigaction(2)` on macOS. */
6 | public struct SigactionFlags : OptionSet {
| `- note: consider making struct 'SigactionFlags' conform to the 'Sendable' protocol
7 |
8 | /**
9 | If this bit is set when installing a catching function for the `SIGCHLD` signal,
10 | the `SIGCHLD` signal will be generated only when a child process exits, not when a child process stops. */
11 | public static let noChildStop = SigactionFlags(rawValue: SA_NOCLDSTOP)
| |- warning: static property 'noChildStop' is not concurrency-safe because non-'Sendable' type 'SigactionFlags' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'noChildStop' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:19:20: warning: static property 'noChildWait' is not concurrency-safe because non-'Sendable' type 'SigactionFlags' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
4 |
5 | /** Flag list is from `sigaction(2)` on macOS. */
6 | public struct SigactionFlags : OptionSet {
| `- note: consider making struct 'SigactionFlags' conform to the 'Sendable' protocol
7 |
8 | /**
:
17 | it blocks until all of the calling process’s child processes terminate,
18 | and then returns a value of -1 with errno set to ECHILD. */
19 | public static let noChildWait = SigactionFlags(rawValue: SA_NOCLDWAIT)
| |- warning: static property 'noChildWait' is not concurrency-safe because non-'Sendable' type 'SigactionFlags' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'noChildWait' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:23:20: warning: static property 'onStack' is not concurrency-safe because non-'Sendable' type 'SigactionFlags' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
4 |
5 | /** Flag list is from `sigaction(2)` on macOS. */
6 | public struct SigactionFlags : OptionSet {
| `- note: consider making struct 'SigactionFlags' conform to the 'Sendable' protocol
7 |
8 | /**
:
21 | /**
22 | If this bit is set, the system will deliver the signal to the process on a signal stack, specified with `sigaltstack(2)`. */
23 | public static let onStack = SigactionFlags(rawValue: SA_ONSTACK)
| |- warning: static property 'onStack' is not concurrency-safe because non-'Sendable' type 'SigactionFlags' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'onStack' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:27:20: warning: static property 'noDefer' is not concurrency-safe because non-'Sendable' type 'SigactionFlags' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
4 |
5 | /** Flag list is from `sigaction(2)` on macOS. */
6 | public struct SigactionFlags : OptionSet {
| `- note: consider making struct 'SigactionFlags' conform to the 'Sendable' protocol
7 |
8 | /**
:
25 | /**
26 | If this bit is set, further occurrences of the delivered signal are not masked during the execution of the handler. */
27 | public static let noDefer = SigactionFlags(rawValue: SA_NODEFER)
| |- warning: static property 'noDefer' is not concurrency-safe because non-'Sendable' type 'SigactionFlags' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'noDefer' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 |
29 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:31:20: warning: static property 'resetHandler' is not concurrency-safe because non-'Sendable' type 'SigactionFlags' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
4 |
5 | /** Flag list is from `sigaction(2)` on macOS. */
6 | public struct SigactionFlags : OptionSet {
| `- note: consider making struct 'SigactionFlags' conform to the 'Sendable' protocol
7 |
8 | /**
:
29 | /**
30 | If this bit is set, the handler is reset back to `SIG_DFL` at the moment the signal is delivered. */
31 | public static let resetHandler = SigactionFlags(rawValue: CInt(SA_RESETHAND) /* On Linux, an UInt32 instead of Int32, so we cast… */)
| |- warning: static property 'resetHandler' is not concurrency-safe because non-'Sendable' type 'SigactionFlags' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'resetHandler' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 |
33 | /** See `sigaction(2)`. */
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:34:20: warning: static property 'restart' is not concurrency-safe because non-'Sendable' type 'SigactionFlags' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
4 |
5 | /** Flag list is from `sigaction(2)` on macOS. */
6 | public struct SigactionFlags : OptionSet {
| `- note: consider making struct 'SigactionFlags' conform to the 'Sendable' protocol
7 |
8 | /**
:
32 |
33 | /** See `sigaction(2)`. */
34 | public static let restart = SigactionFlags(rawValue: SA_RESTART)
| |- warning: static property 'restart' is not concurrency-safe because non-'Sendable' type 'SigactionFlags' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'restart' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 |
36 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:40:20: warning: static property 'siginfo' is not concurrency-safe because non-'Sendable' type 'SigactionFlags' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
4 |
5 | /** Flag list is from `sigaction(2)` on macOS. */
6 | public struct SigactionFlags : OptionSet {
| `- note: consider making struct 'SigactionFlags' conform to the 'Sendable' protocol
7 |
8 | /**
:
38 | and should match the matching prototype.
39 | This bit should not be set when assigning `SIG_DFL` or `SIG_IGN`. */
40 | public static let siginfo = SigactionFlags(rawValue: SA_SIGINFO)
| |- warning: static property 'siginfo' is not concurrency-safe because non-'Sendable' type 'SigactionFlags' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'siginfo' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 |
42 | public let rawValue: CInt
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:34:20: warning: static property 'killingSignals' is not concurrency-safe because non-'Sendable' type 'Set<Signal>' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
32 |
33 | - Important: As previously mentionned, this list is hand-crafted and might be missing signals or having too many of them. */
34 | public static let killingSignals: Set<Signal> = {
| |- warning: static property 'killingSignals' is not concurrency-safe because non-'Sendable' type 'Set<Signal>' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'killingSignals' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 | return Set(arrayLiteral:
36 | .terminated, /* Default kill */
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:48:20: warning: static property 'toForwardToSubprocesses' is not concurrency-safe because non-'Sendable' type 'Set<Signal>' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
46 | - Important: As previously mentionned, this list is hand-crafted and does not correspond to any system development notion,
47 | or anything that I know of. */
48 | public static let toForwardToSubprocesses: Set<Signal> = {
| |- warning: static property 'toForwardToSubprocesses' is not concurrency-safe because non-'Sendable' type 'Set<Signal>' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'toForwardToSubprocesses' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | return Set(arrayLiteral:
50 | .suspended, /* Ctrl-Z */
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:79:20: warning: static property 'arithmeticError' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
77 | /**
78 | - Note: FPE means Floating-Point Exception but this signal is sent for any arithmetic error. */
79 | public static let arithmeticError = Signal(rawValue: SIGFPE)
| |- warning: static property 'arithmeticError' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'arithmeticError' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
80 | @available(*, unavailable, renamed: "arithmeticError")
81 | public static let floatingPointException = Signal(rawValue: SIGFPE)
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:81:20: warning: static property 'floatingPointException' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
79 | public static let arithmeticError = Signal(rawValue: SIGFPE)
80 | @available(*, unavailable, renamed: "arithmeticError")
81 | public static let floatingPointException = Signal(rawValue: SIGFPE)
| |- warning: static property 'floatingPointException' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'floatingPointException' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
82 | public static let illegalInstruction = Signal(rawValue: SIGILL)
83 | public static let segmentationFault = Signal(rawValue: SIGSEGV)
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:82:20: warning: static property 'illegalInstruction' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
80 | @available(*, unavailable, renamed: "arithmeticError")
81 | public static let floatingPointException = Signal(rawValue: SIGFPE)
82 | public static let illegalInstruction = Signal(rawValue: SIGILL)
| |- warning: static property 'illegalInstruction' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'illegalInstruction' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
83 | public static let segmentationFault = Signal(rawValue: SIGSEGV)
84 | public static let busError = Signal(rawValue: SIGBUS)
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:83:20: warning: static property 'segmentationFault' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
81 | public static let floatingPointException = Signal(rawValue: SIGFPE)
82 | public static let illegalInstruction = Signal(rawValue: SIGILL)
83 | public static let segmentationFault = Signal(rawValue: SIGSEGV)
| |- warning: static property 'segmentationFault' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'segmentationFault' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
84 | public static let busError = Signal(rawValue: SIGBUS)
85 | public static let abortTrap = Signal(rawValue: SIGABRT)
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:84:20: warning: static property 'busError' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
82 | public static let illegalInstruction = Signal(rawValue: SIGILL)
83 | public static let segmentationFault = Signal(rawValue: SIGSEGV)
84 | public static let busError = Signal(rawValue: SIGBUS)
| |- warning: static property 'busError' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'busError' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
85 | public static let abortTrap = Signal(rawValue: SIGABRT)
86 | /** Usually the same as `abortTrap`. */
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:85:20: warning: static property 'abortTrap' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
83 | public static let segmentationFault = Signal(rawValue: SIGSEGV)
84 | public static let busError = Signal(rawValue: SIGBUS)
85 | public static let abortTrap = Signal(rawValue: SIGABRT)
| |- warning: static property 'abortTrap' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'abortTrap' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
86 | /** Usually the same as `abortTrap`. */
87 | public static let iot = Signal(rawValue: SIGIOT)
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:87:20: warning: static property 'iot' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
85 | public static let abortTrap = Signal(rawValue: SIGABRT)
86 | /** Usually the same as `abortTrap`. */
87 | public static let iot = Signal(rawValue: SIGIOT)
| |- warning: static property 'iot' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'iot' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
88 | public static let traceBreakpointTrap = Signal(rawValue: SIGTRAP)
89 | #if !os(Linux)
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:88:20: warning: static property 'traceBreakpointTrap' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
86 | /** Usually the same as `abortTrap`. */
87 | public static let iot = Signal(rawValue: SIGIOT)
88 | public static let traceBreakpointTrap = Signal(rawValue: SIGTRAP)
| |- warning: static property 'traceBreakpointTrap' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'traceBreakpointTrap' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
89 | #if !os(Linux)
90 | public static let emulatorTrap = Signal(rawValue: SIGEMT)
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:90:20: warning: static property 'emulatorTrap' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
88 | public static let traceBreakpointTrap = Signal(rawValue: SIGTRAP)
89 | #if !os(Linux)
90 | public static let emulatorTrap = Signal(rawValue: SIGEMT)
| |- warning: static property 'emulatorTrap' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'emulatorTrap' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
91 | #endif
92 | public static let badSystemCall = Signal(rawValue: SIGSYS)
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:92:20: warning: static property 'badSystemCall' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
90 | public static let emulatorTrap = Signal(rawValue: SIGEMT)
91 | #endif
92 | public static let badSystemCall = Signal(rawValue: SIGSYS)
| |- warning: static property 'badSystemCall' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'badSystemCall' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
93 |
94 | /* *** Termination Signals *** */
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:108:20: warning: static property 'terminated' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
106 |
107 | /** “Normal” kill signal. */
108 | public static let terminated = Signal(rawValue: SIGTERM)
| |- warning: static property 'terminated' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'terminated' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
109 | /** Usually `Ctrl-C`. */
110 | public static let interrupt = Signal(rawValue: SIGINT)
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:110:20: warning: static property 'interrupt' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
108 | public static let terminated = Signal(rawValue: SIGTERM)
109 | /** Usually `Ctrl-C`. */
110 | public static let interrupt = Signal(rawValue: SIGINT)
| |- warning: static property 'interrupt' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'interrupt' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
111 | /** Used to quit w/ generation of a core dump. Usually `Ctrl-\`. */
112 | public static let quit = Signal(rawValue: SIGQUIT)
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:112:20: warning: static property 'quit' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
110 | public static let interrupt = Signal(rawValue: SIGINT)
111 | /** Used to quit w/ generation of a core dump. Usually `Ctrl-\`. */
112 | public static let quit = Signal(rawValue: SIGQUIT)
| |- warning: static property 'quit' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'quit' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
113 | public static let killed = Signal(rawValue: SIGKILL)
114 | /** The user’s terminal disconnected. */
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:113:20: warning: static property 'killed' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
111 | /** Used to quit w/ generation of a core dump. Usually `Ctrl-\`. */
112 | public static let quit = Signal(rawValue: SIGQUIT)
113 | public static let killed = Signal(rawValue: SIGKILL)
| |- warning: static property 'killed' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'killed' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
114 | /** The user’s terminal disconnected. */
115 | public static let hangup = Signal(rawValue: SIGHUP)
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:115:20: warning: static property 'hangup' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
113 | public static let killed = Signal(rawValue: SIGKILL)
114 | /** The user’s terminal disconnected. */
115 | public static let hangup = Signal(rawValue: SIGHUP)
| |- warning: static property 'hangup' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'hangup' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
116 |
117 | /* *** Alarm Signals *** */
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:128:20: warning: static property 'alarmClock' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
126 | }
127 |
128 | public static let alarmClock = Signal(rawValue: SIGALRM)
| |- warning: static property 'alarmClock' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'alarmClock' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
129 | public static let virtualTimerExpired = Signal(rawValue: SIGVTALRM)
130 | public static let profilingTimerExpired = Signal(rawValue: SIGPROF)
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:129:20: warning: static property 'virtualTimerExpired' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
127 |
128 | public static let alarmClock = Signal(rawValue: SIGALRM)
129 | public static let virtualTimerExpired = Signal(rawValue: SIGVTALRM)
| |- warning: static property 'virtualTimerExpired' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'virtualTimerExpired' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
130 | public static let profilingTimerExpired = Signal(rawValue: SIGPROF)
131 |
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:130:20: warning: static property 'profilingTimerExpired' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
128 | public static let alarmClock = Signal(rawValue: SIGALRM)
129 | public static let virtualTimerExpired = Signal(rawValue: SIGVTALRM)
130 | public static let profilingTimerExpired = Signal(rawValue: SIGPROF)
| |- warning: static property 'profilingTimerExpired' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'profilingTimerExpired' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
131 |
132 | /* *** Asynchronous I/O Signals *** */
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:143:20: warning: static property 'ioPossible' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
141 | }
142 |
143 | public static let ioPossible = Signal(rawValue: SIGIO)
| |- warning: static property 'ioPossible' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'ioPossible' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
144 | public static let urgentIOCondition = Signal(rawValue: SIGURG)
145 | #if os(Linux)
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:144:20: warning: static property 'urgentIOCondition' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
142 |
143 | public static let ioPossible = Signal(rawValue: SIGIO)
144 | public static let urgentIOCondition = Signal(rawValue: SIGURG)
| |- warning: static property 'urgentIOCondition' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'urgentIOCondition' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
145 | #if os(Linux)
146 | /** System V signal name, similar to SIGIO. */
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:164:20: warning: static property 'childExited' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
162 | }
163 |
164 | public static let childExited = Signal(rawValue: SIGCHLD)
| |- warning: static property 'childExited' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'childExited' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
165 | /* Obsolete name for SIGCHLD. */
166 | // public static let cildExited = Signal(rawValue: SIGCLD)
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:167:20: warning: static property 'continued' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
165 | /* Obsolete name for SIGCHLD. */
166 | // public static let cildExited = Signal(rawValue: SIGCLD)
167 | public static let continued = Signal(rawValue: SIGCONT)
| |- warning: static property 'continued' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'continued' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
168 | /** Suspends the program. Cannot be handled, ignored or blocked. */
169 | public static let suspendedBySignal = Signal(rawValue: SIGSTOP)
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:169:20: warning: static property 'suspendedBySignal' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
167 | public static let continued = Signal(rawValue: SIGCONT)
168 | /** Suspends the program. Cannot be handled, ignored or blocked. */
169 | public static let suspendedBySignal = Signal(rawValue: SIGSTOP)
| |- warning: static property 'suspendedBySignal' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'suspendedBySignal' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
170 | /** Suspends the program but can be handled and ignored. Usually `Ctrl-Z`. */
171 | public static let suspended = Signal(rawValue: SIGTSTP)
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:171:20: warning: static property 'suspended' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
169 | public static let suspendedBySignal = Signal(rawValue: SIGSTOP)
170 | /** Suspends the program but can be handled and ignored. Usually `Ctrl-Z`. */
171 | public static let suspended = Signal(rawValue: SIGTSTP)
| |- warning: static property 'suspended' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'suspended' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
172 | public static let stoppedTTYInput = Signal(rawValue: SIGTTIN)
173 | public static let stoppedTTYOutput = Signal(rawValue: SIGTTOU)
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:172:20: warning: static property 'stoppedTTYInput' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
170 | /** Suspends the program but can be handled and ignored. Usually `Ctrl-Z`. */
171 | public static let suspended = Signal(rawValue: SIGTSTP)
172 | public static let stoppedTTYInput = Signal(rawValue: SIGTTIN)
| |- warning: static property 'stoppedTTYInput' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'stoppedTTYInput' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
173 | public static let stoppedTTYOutput = Signal(rawValue: SIGTTOU)
174 |
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:173:20: warning: static property 'stoppedTTYOutput' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
171 | public static let suspended = Signal(rawValue: SIGTSTP)
172 | public static let stoppedTTYInput = Signal(rawValue: SIGTTIN)
173 | public static let stoppedTTYOutput = Signal(rawValue: SIGTTOU)
| |- warning: static property 'stoppedTTYOutput' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'stoppedTTYOutput' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
174 |
175 | /* *** Operation Error Signals *** */
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:186:20: warning: static property 'brokenPipe' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
184 | }
185 |
186 | public static let brokenPipe = Signal(rawValue: SIGPIPE)
| |- warning: static property 'brokenPipe' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'brokenPipe' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
187 | // public static let resourceLost = Signal(rawValue: SIGLOST)
188 | public static let cputimeLimitExceeded = Signal(rawValue: SIGXCPU)
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:188:20: warning: static property 'cputimeLimitExceeded' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
186 | public static let brokenPipe = Signal(rawValue: SIGPIPE)
187 | // public static let resourceLost = Signal(rawValue: SIGLOST)
188 | public static let cputimeLimitExceeded = Signal(rawValue: SIGXCPU)
| |- warning: static property 'cputimeLimitExceeded' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'cputimeLimitExceeded' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
189 | public static let filesizeLimitExceeded = Signal(rawValue: SIGXFSZ)
190 |
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:189:20: warning: static property 'filesizeLimitExceeded' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
187 | // public static let resourceLost = Signal(rawValue: SIGLOST)
188 | public static let cputimeLimitExceeded = Signal(rawValue: SIGXCPU)
189 | public static let filesizeLimitExceeded = Signal(rawValue: SIGXFSZ)
| |- warning: static property 'filesizeLimitExceeded' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'filesizeLimitExceeded' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
190 |
191 | /* *** Miscellaneous Signals *** */
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:208:20: warning: static property 'userDefinedSignal1' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
206 | }
207 |
208 | public static let userDefinedSignal1 = Signal(rawValue: SIGUSR1)
| |- warning: static property 'userDefinedSignal1' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'userDefinedSignal1' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
209 | public static let userDefinedSignal2 = Signal(rawValue: SIGUSR2)
210 | public static let windowSizeChanges = Signal(rawValue: SIGWINCH)
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:209:20: warning: static property 'userDefinedSignal2' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
207 |
208 | public static let userDefinedSignal1 = Signal(rawValue: SIGUSR1)
209 | public static let userDefinedSignal2 = Signal(rawValue: SIGUSR2)
| |- warning: static property 'userDefinedSignal2' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'userDefinedSignal2' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
210 | public static let windowSizeChanges = Signal(rawValue: SIGWINCH)
211 | #if !os(Linux)
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:210:20: warning: static property 'windowSizeChanges' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
208 | public static let userDefinedSignal1 = Signal(rawValue: SIGUSR1)
209 | public static let userDefinedSignal2 = Signal(rawValue: SIGUSR2)
210 | public static let windowSizeChanges = Signal(rawValue: SIGWINCH)
| |- warning: static property 'windowSizeChanges' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'windowSizeChanges' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
211 | #if !os(Linux)
212 | public static let informationRequest = Signal(rawValue: SIGINFO)
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:212:20: warning: static property 'informationRequest' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
210 | public static let windowSizeChanges = Signal(rawValue: SIGWINCH)
211 | #if !os(Linux)
212 | public static let informationRequest = Signal(rawValue: SIGINFO)
| |- warning: static property 'informationRequest' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'informationRequest' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
213 | #endif
214 |
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/DelayedSigaction.swift:10:21: warning: static property 'latestID' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
8 | public struct DelayedSigaction : Hashable {
9 |
10 | private static var latestID = 0
| |- warning: static property 'latestID' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'latestID' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'latestID' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 |
12 | internal var id: Int
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:173:14: warning: static property 'action' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
171 | static let lock = NSConditionLock(condition: Self.nothingToDo.rawValue)
172 |
173 | static var action: Action = .nop
| |- warning: static property 'action' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'action' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'action' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
174 | static var error: Error?
175 |
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:174:14: warning: static property 'error' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
172 |
173 | static var action: Action = .nop
174 | static var error: Error?
| |- warning: static property 'error' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'error' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'error' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
175 |
176 | case nothingToDo
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:191:21: warning: static property 'bootstrapDone' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
189 | private static let signalProcessingQueue = DispatchQueue(label: "com.xcode-actions.blocked-signals-processing-queue")
190 |
191 | private static var bootstrapDone = false
| |- warning: static property 'bootstrapDone' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'bootstrapDone' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'bootstrapDone' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
192 | private static var blockedSignals = [Signal: BlockedSignal]()
193 |
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:192:21: warning: static property 'blockedSignals' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
190 |
191 | private static var bootstrapDone = false
192 | private static var blockedSignals = [Signal: BlockedSignal]()
| |- warning: static property 'blockedSignals' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'blockedSignals' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'blockedSignals' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
193 |
194 | private static func executeOnThread(_ action: ThreadSync.Action) throws {
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:130:14: warning: static property 'action' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
128 | static let lock = NSConditionLock(condition: Self.nothingToDo.rawValue)
129 |
130 | static var action: Action = .nop
| |- warning: static property 'action' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'action' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'action' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
131 | static var completionResult: ErrorAndLogs?
132 |
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:131:14: warning: static property 'completionResult' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
129 |
130 | static var action: Action = .nop
131 | static var completionResult: ErrorAndLogs?
| |- warning: static property 'completionResult' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'completionResult' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'completionResult' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
132 |
133 | case nothingToDo
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:150:21: warning: static property 'hasCreatedProcessingThread' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
148 | private static let signalProcessingQueue = DispatchQueue(label: "com.xcode-actions.unsigactioned-signals-processing-queue")
149 |
150 | private static var hasCreatedProcessingThread = false
| |- warning: static property 'hasCreatedProcessingThread' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'hasCreatedProcessingThread' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'hasCreatedProcessingThread' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
151 | private static var unsigactionedSignals = [Signal: UnsigactionedSignal]()
152 |
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:151:21: warning: static property 'unsigactionedSignals' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
149 |
150 | private static var hasCreatedProcessingThread = false
151 | private static var unsigactionedSignals = [Signal: UnsigactionedSignal]()
| |- warning: static property 'unsigactionedSignals' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'unsigactionedSignals' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'unsigactionedSignals' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
152 |
153 | private static func executeOnThread(_ action: ThreadSync.Action) throws {
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/SignalHandlingConfig.swift:9:20: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
7 | public enum SignalHandlingConfig {
8 |
9 | public static var logger: Logging.Logger? = {
| |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logger' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | return Logger(label: "com.xcode-actions.signal-handling")
11 | }()
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:9:20: warning: static property 'ignoreAction' is not concurrency-safe because non-'Sendable' type 'Sigaction' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 |
6 |
7 | public struct Sigaction : Equatable, RawRepresentable {
| `- note: consider making struct 'Sigaction' conform to the 'Sendable' protocol
8 |
9 | public static let ignoreAction = Sigaction(handler: .ignoreHandler)
| |- warning: static property 'ignoreAction' is not concurrency-safe because non-'Sendable' type 'Sigaction' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'ignoreAction' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | public static let defaultAction = Sigaction(handler: .defaultHandler)
11 |
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:10:20: warning: static property 'defaultAction' is not concurrency-safe because non-'Sendable' type 'Sigaction' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 |
6 |
7 | public struct Sigaction : Equatable, RawRepresentable {
| `- note: consider making struct 'Sigaction' conform to the 'Sendable' protocol
8 |
9 | public static let ignoreAction = Sigaction(handler: .ignoreHandler)
10 | public static let defaultAction = Sigaction(handler: .defaultHandler)
| |- warning: static property 'defaultAction' is not concurrency-safe because non-'Sendable' type 'Sigaction' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'defaultAction' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 |
12 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:11:20: warning: static property 'noChildStop' is not concurrency-safe because non-'Sendable' type 'SigactionFlags' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
4 |
5 | /** Flag list is from `sigaction(2)` on macOS. */
6 | public struct SigactionFlags : OptionSet {
| `- note: consider making struct 'SigactionFlags' conform to the 'Sendable' protocol
7 |
8 | /**
9 | If this bit is set when installing a catching function for the `SIGCHLD` signal,
10 | the `SIGCHLD` signal will be generated only when a child process exits, not when a child process stops. */
11 | public static let noChildStop = SigactionFlags(rawValue: SA_NOCLDSTOP)
| |- warning: static property 'noChildStop' is not concurrency-safe because non-'Sendable' type 'SigactionFlags' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'noChildStop' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:19:20: warning: static property 'noChildWait' is not concurrency-safe because non-'Sendable' type 'SigactionFlags' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
4 |
5 | /** Flag list is from `sigaction(2)` on macOS. */
6 | public struct SigactionFlags : OptionSet {
| `- note: consider making struct 'SigactionFlags' conform to the 'Sendable' protocol
7 |
8 | /**
:
17 | it blocks until all of the calling process’s child processes terminate,
18 | and then returns a value of -1 with errno set to ECHILD. */
19 | public static let noChildWait = SigactionFlags(rawValue: SA_NOCLDWAIT)
| |- warning: static property 'noChildWait' is not concurrency-safe because non-'Sendable' type 'SigactionFlags' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'noChildWait' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:23:20: warning: static property 'onStack' is not concurrency-safe because non-'Sendable' type 'SigactionFlags' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
4 |
5 | /** Flag list is from `sigaction(2)` on macOS. */
6 | public struct SigactionFlags : OptionSet {
| `- note: consider making struct 'SigactionFlags' conform to the 'Sendable' protocol
7 |
8 | /**
:
21 | /**
22 | If this bit is set, the system will deliver the signal to the process on a signal stack, specified with `sigaltstack(2)`. */
23 | public static let onStack = SigactionFlags(rawValue: SA_ONSTACK)
| |- warning: static property 'onStack' is not concurrency-safe because non-'Sendable' type 'SigactionFlags' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'onStack' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:27:20: warning: static property 'noDefer' is not concurrency-safe because non-'Sendable' type 'SigactionFlags' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
4 |
5 | /** Flag list is from `sigaction(2)` on macOS. */
6 | public struct SigactionFlags : OptionSet {
| `- note: consider making struct 'SigactionFlags' conform to the 'Sendable' protocol
7 |
8 | /**
:
25 | /**
26 | If this bit is set, further occurrences of the delivered signal are not masked during the execution of the handler. */
27 | public static let noDefer = SigactionFlags(rawValue: SA_NODEFER)
| |- warning: static property 'noDefer' is not concurrency-safe because non-'Sendable' type 'SigactionFlags' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'noDefer' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 |
29 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:31:20: warning: static property 'resetHandler' is not concurrency-safe because non-'Sendable' type 'SigactionFlags' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
4 |
5 | /** Flag list is from `sigaction(2)` on macOS. */
6 | public struct SigactionFlags : OptionSet {
| `- note: consider making struct 'SigactionFlags' conform to the 'Sendable' protocol
7 |
8 | /**
:
29 | /**
30 | If this bit is set, the handler is reset back to `SIG_DFL` at the moment the signal is delivered. */
31 | public static let resetHandler = SigactionFlags(rawValue: CInt(SA_RESETHAND) /* On Linux, an UInt32 instead of Int32, so we cast… */)
| |- warning: static property 'resetHandler' is not concurrency-safe because non-'Sendable' type 'SigactionFlags' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'resetHandler' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 |
33 | /** See `sigaction(2)`. */
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:34:20: warning: static property 'restart' is not concurrency-safe because non-'Sendable' type 'SigactionFlags' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
4 |
5 | /** Flag list is from `sigaction(2)` on macOS. */
6 | public struct SigactionFlags : OptionSet {
| `- note: consider making struct 'SigactionFlags' conform to the 'Sendable' protocol
7 |
8 | /**
:
32 |
33 | /** See `sigaction(2)`. */
34 | public static let restart = SigactionFlags(rawValue: SA_RESTART)
| |- warning: static property 'restart' is not concurrency-safe because non-'Sendable' type 'SigactionFlags' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'restart' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 |
36 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:40:20: warning: static property 'siginfo' is not concurrency-safe because non-'Sendable' type 'SigactionFlags' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
4 |
5 | /** Flag list is from `sigaction(2)` on macOS. */
6 | public struct SigactionFlags : OptionSet {
| `- note: consider making struct 'SigactionFlags' conform to the 'Sendable' protocol
7 |
8 | /**
:
38 | and should match the matching prototype.
39 | This bit should not be set when assigning `SIG_DFL` or `SIG_IGN`. */
40 | public static let siginfo = SigactionFlags(rawValue: SA_SIGINFO)
| |- warning: static property 'siginfo' is not concurrency-safe because non-'Sendable' type 'SigactionFlags' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'siginfo' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 |
42 | public let rawValue: CInt
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:9:20: warning: static property 'ignoreAction' is not concurrency-safe because non-'Sendable' type 'Sigaction' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 |
6 |
7 | public struct Sigaction : Equatable, RawRepresentable {
| `- note: consider making struct 'Sigaction' conform to the 'Sendable' protocol
8 |
9 | public static let ignoreAction = Sigaction(handler: .ignoreHandler)
| |- warning: static property 'ignoreAction' is not concurrency-safe because non-'Sendable' type 'Sigaction' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'ignoreAction' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | public static let defaultAction = Sigaction(handler: .defaultHandler)
11 |
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Sigaction.swift:10:20: warning: static property 'defaultAction' is not concurrency-safe because non-'Sendable' type 'Sigaction' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 |
6 |
7 | public struct Sigaction : Equatable, RawRepresentable {
| `- note: consider making struct 'Sigaction' conform to the 'Sendable' protocol
8 |
9 | public static let ignoreAction = Sigaction(handler: .ignoreHandler)
10 | public static let defaultAction = Sigaction(handler: .defaultHandler)
| |- warning: static property 'defaultAction' is not concurrency-safe because non-'Sendable' type 'Sigaction' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'defaultAction' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 |
12 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:11:20: warning: static property 'noChildStop' is not concurrency-safe because non-'Sendable' type 'SigactionFlags' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
4 |
5 | /** Flag list is from `sigaction(2)` on macOS. */
6 | public struct SigactionFlags : OptionSet {
| `- note: consider making struct 'SigactionFlags' conform to the 'Sendable' protocol
7 |
8 | /**
9 | If this bit is set when installing a catching function for the `SIGCHLD` signal,
10 | the `SIGCHLD` signal will be generated only when a child process exits, not when a child process stops. */
11 | public static let noChildStop = SigactionFlags(rawValue: SA_NOCLDSTOP)
| |- warning: static property 'noChildStop' is not concurrency-safe because non-'Sendable' type 'SigactionFlags' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'noChildStop' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:19:20: warning: static property 'noChildWait' is not concurrency-safe because non-'Sendable' type 'SigactionFlags' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
4 |
5 | /** Flag list is from `sigaction(2)` on macOS. */
6 | public struct SigactionFlags : OptionSet {
| `- note: consider making struct 'SigactionFlags' conform to the 'Sendable' protocol
7 |
8 | /**
:
17 | it blocks until all of the calling process’s child processes terminate,
18 | and then returns a value of -1 with errno set to ECHILD. */
19 | public static let noChildWait = SigactionFlags(rawValue: SA_NOCLDWAIT)
| |- warning: static property 'noChildWait' is not concurrency-safe because non-'Sendable' type 'SigactionFlags' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'noChildWait' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:23:20: warning: static property 'onStack' is not concurrency-safe because non-'Sendable' type 'SigactionFlags' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
4 |
5 | /** Flag list is from `sigaction(2)` on macOS. */
6 | public struct SigactionFlags : OptionSet {
| `- note: consider making struct 'SigactionFlags' conform to the 'Sendable' protocol
7 |
8 | /**
:
21 | /**
22 | If this bit is set, the system will deliver the signal to the process on a signal stack, specified with `sigaltstack(2)`. */
23 | public static let onStack = SigactionFlags(rawValue: SA_ONSTACK)
| |- warning: static property 'onStack' is not concurrency-safe because non-'Sendable' type 'SigactionFlags' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'onStack' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:27:20: warning: static property 'noDefer' is not concurrency-safe because non-'Sendable' type 'SigactionFlags' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
4 |
5 | /** Flag list is from `sigaction(2)` on macOS. */
6 | public struct SigactionFlags : OptionSet {
| `- note: consider making struct 'SigactionFlags' conform to the 'Sendable' protocol
7 |
8 | /**
:
25 | /**
26 | If this bit is set, further occurrences of the delivered signal are not masked during the execution of the handler. */
27 | public static let noDefer = SigactionFlags(rawValue: SA_NODEFER)
| |- warning: static property 'noDefer' is not concurrency-safe because non-'Sendable' type 'SigactionFlags' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'noDefer' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 |
29 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:31:20: warning: static property 'resetHandler' is not concurrency-safe because non-'Sendable' type 'SigactionFlags' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
4 |
5 | /** Flag list is from `sigaction(2)` on macOS. */
6 | public struct SigactionFlags : OptionSet {
| `- note: consider making struct 'SigactionFlags' conform to the 'Sendable' protocol
7 |
8 | /**
:
29 | /**
30 | If this bit is set, the handler is reset back to `SIG_DFL` at the moment the signal is delivered. */
31 | public static let resetHandler = SigactionFlags(rawValue: CInt(SA_RESETHAND) /* On Linux, an UInt32 instead of Int32, so we cast… */)
| |- warning: static property 'resetHandler' is not concurrency-safe because non-'Sendable' type 'SigactionFlags' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'resetHandler' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 |
33 | /** See `sigaction(2)`. */
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:34:20: warning: static property 'restart' is not concurrency-safe because non-'Sendable' type 'SigactionFlags' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
4 |
5 | /** Flag list is from `sigaction(2)` on macOS. */
6 | public struct SigactionFlags : OptionSet {
| `- note: consider making struct 'SigactionFlags' conform to the 'Sendable' protocol
7 |
8 | /**
:
32 |
33 | /** See `sigaction(2)`. */
34 | public static let restart = SigactionFlags(rawValue: SA_RESTART)
| |- warning: static property 'restart' is not concurrency-safe because non-'Sendable' type 'SigactionFlags' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'restart' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 |
36 | /**
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/SigactionFlag.swift:40:20: warning: static property 'siginfo' is not concurrency-safe because non-'Sendable' type 'SigactionFlags' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
4 |
5 | /** Flag list is from `sigaction(2)` on macOS. */
6 | public struct SigactionFlags : OptionSet {
| `- note: consider making struct 'SigactionFlags' conform to the 'Sendable' protocol
7 |
8 | /**
:
38 | and should match the matching prototype.
39 | This bit should not be set when assigning `SIG_DFL` or `SIG_IGN`. */
40 | public static let siginfo = SigactionFlags(rawValue: SA_SIGINFO)
| |- warning: static property 'siginfo' is not concurrency-safe because non-'Sendable' type 'SigactionFlags' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'siginfo' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 |
42 | public let rawValue: CInt
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[85/99] Compiling SignalHandling SigactionHandler.swift
[86/99] Emitting module CLTLogger
[87/99] Compiling CLTLogger CLTLogger.swift
[88/99] Compiling SignalHandling Signal.swift
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:34:20: warning: static property 'killingSignals' is not concurrency-safe because non-'Sendable' type 'Set<Signal>' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
32 |
33 | - Important: As previously mentionned, this list is hand-crafted and might be missing signals or having too many of them. */
34 | public static let killingSignals: Set<Signal> = {
| |- warning: static property 'killingSignals' is not concurrency-safe because non-'Sendable' type 'Set<Signal>' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'killingSignals' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 | return Set(arrayLiteral:
36 | .terminated, /* Default kill */
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:48:20: warning: static property 'toForwardToSubprocesses' is not concurrency-safe because non-'Sendable' type 'Set<Signal>' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
46 | - Important: As previously mentionned, this list is hand-crafted and does not correspond to any system development notion,
47 | or anything that I know of. */
48 | public static let toForwardToSubprocesses: Set<Signal> = {
| |- warning: static property 'toForwardToSubprocesses' is not concurrency-safe because non-'Sendable' type 'Set<Signal>' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'toForwardToSubprocesses' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | return Set(arrayLiteral:
50 | .suspended, /* Ctrl-Z */
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:79:20: warning: static property 'arithmeticError' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
77 | /**
78 | - Note: FPE means Floating-Point Exception but this signal is sent for any arithmetic error. */
79 | public static let arithmeticError = Signal(rawValue: SIGFPE)
| |- warning: static property 'arithmeticError' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'arithmeticError' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
80 | @available(*, unavailable, renamed: "arithmeticError")
81 | public static let floatingPointException = Signal(rawValue: SIGFPE)
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:81:20: warning: static property 'floatingPointException' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
79 | public static let arithmeticError = Signal(rawValue: SIGFPE)
80 | @available(*, unavailable, renamed: "arithmeticError")
81 | public static let floatingPointException = Signal(rawValue: SIGFPE)
| |- warning: static property 'floatingPointException' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'floatingPointException' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
82 | public static let illegalInstruction = Signal(rawValue: SIGILL)
83 | public static let segmentationFault = Signal(rawValue: SIGSEGV)
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:82:20: warning: static property 'illegalInstruction' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
80 | @available(*, unavailable, renamed: "arithmeticError")
81 | public static let floatingPointException = Signal(rawValue: SIGFPE)
82 | public static let illegalInstruction = Signal(rawValue: SIGILL)
| |- warning: static property 'illegalInstruction' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'illegalInstruction' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
83 | public static let segmentationFault = Signal(rawValue: SIGSEGV)
84 | public static let busError = Signal(rawValue: SIGBUS)
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:83:20: warning: static property 'segmentationFault' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
81 | public static let floatingPointException = Signal(rawValue: SIGFPE)
82 | public static let illegalInstruction = Signal(rawValue: SIGILL)
83 | public static let segmentationFault = Signal(rawValue: SIGSEGV)
| |- warning: static property 'segmentationFault' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'segmentationFault' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
84 | public static let busError = Signal(rawValue: SIGBUS)
85 | public static let abortTrap = Signal(rawValue: SIGABRT)
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:84:20: warning: static property 'busError' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
82 | public static let illegalInstruction = Signal(rawValue: SIGILL)
83 | public static let segmentationFault = Signal(rawValue: SIGSEGV)
84 | public static let busError = Signal(rawValue: SIGBUS)
| |- warning: static property 'busError' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'busError' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
85 | public static let abortTrap = Signal(rawValue: SIGABRT)
86 | /** Usually the same as `abortTrap`. */
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:85:20: warning: static property 'abortTrap' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
83 | public static let segmentationFault = Signal(rawValue: SIGSEGV)
84 | public static let busError = Signal(rawValue: SIGBUS)
85 | public static let abortTrap = Signal(rawValue: SIGABRT)
| |- warning: static property 'abortTrap' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'abortTrap' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
86 | /** Usually the same as `abortTrap`. */
87 | public static let iot = Signal(rawValue: SIGIOT)
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:87:20: warning: static property 'iot' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
85 | public static let abortTrap = Signal(rawValue: SIGABRT)
86 | /** Usually the same as `abortTrap`. */
87 | public static let iot = Signal(rawValue: SIGIOT)
| |- warning: static property 'iot' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'iot' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
88 | public static let traceBreakpointTrap = Signal(rawValue: SIGTRAP)
89 | #if !os(Linux)
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:88:20: warning: static property 'traceBreakpointTrap' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
86 | /** Usually the same as `abortTrap`. */
87 | public static let iot = Signal(rawValue: SIGIOT)
88 | public static let traceBreakpointTrap = Signal(rawValue: SIGTRAP)
| |- warning: static property 'traceBreakpointTrap' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'traceBreakpointTrap' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
89 | #if !os(Linux)
90 | public static let emulatorTrap = Signal(rawValue: SIGEMT)
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:90:20: warning: static property 'emulatorTrap' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
88 | public static let traceBreakpointTrap = Signal(rawValue: SIGTRAP)
89 | #if !os(Linux)
90 | public static let emulatorTrap = Signal(rawValue: SIGEMT)
| |- warning: static property 'emulatorTrap' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'emulatorTrap' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
91 | #endif
92 | public static let badSystemCall = Signal(rawValue: SIGSYS)
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:92:20: warning: static property 'badSystemCall' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
90 | public static let emulatorTrap = Signal(rawValue: SIGEMT)
91 | #endif
92 | public static let badSystemCall = Signal(rawValue: SIGSYS)
| |- warning: static property 'badSystemCall' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'badSystemCall' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
93 |
94 | /* *** Termination Signals *** */
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:108:20: warning: static property 'terminated' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
106 |
107 | /** “Normal” kill signal. */
108 | public static let terminated = Signal(rawValue: SIGTERM)
| |- warning: static property 'terminated' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'terminated' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
109 | /** Usually `Ctrl-C`. */
110 | public static let interrupt = Signal(rawValue: SIGINT)
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:110:20: warning: static property 'interrupt' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
108 | public static let terminated = Signal(rawValue: SIGTERM)
109 | /** Usually `Ctrl-C`. */
110 | public static let interrupt = Signal(rawValue: SIGINT)
| |- warning: static property 'interrupt' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'interrupt' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
111 | /** Used to quit w/ generation of a core dump. Usually `Ctrl-\`. */
112 | public static let quit = Signal(rawValue: SIGQUIT)
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:112:20: warning: static property 'quit' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
110 | public static let interrupt = Signal(rawValue: SIGINT)
111 | /** Used to quit w/ generation of a core dump. Usually `Ctrl-\`. */
112 | public static let quit = Signal(rawValue: SIGQUIT)
| |- warning: static property 'quit' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'quit' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
113 | public static let killed = Signal(rawValue: SIGKILL)
114 | /** The user’s terminal disconnected. */
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:113:20: warning: static property 'killed' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
111 | /** Used to quit w/ generation of a core dump. Usually `Ctrl-\`. */
112 | public static let quit = Signal(rawValue: SIGQUIT)
113 | public static let killed = Signal(rawValue: SIGKILL)
| |- warning: static property 'killed' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'killed' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
114 | /** The user’s terminal disconnected. */
115 | public static let hangup = Signal(rawValue: SIGHUP)
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:115:20: warning: static property 'hangup' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
113 | public static let killed = Signal(rawValue: SIGKILL)
114 | /** The user’s terminal disconnected. */
115 | public static let hangup = Signal(rawValue: SIGHUP)
| |- warning: static property 'hangup' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'hangup' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
116 |
117 | /* *** Alarm Signals *** */
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:128:20: warning: static property 'alarmClock' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
126 | }
127 |
128 | public static let alarmClock = Signal(rawValue: SIGALRM)
| |- warning: static property 'alarmClock' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'alarmClock' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
129 | public static let virtualTimerExpired = Signal(rawValue: SIGVTALRM)
130 | public static let profilingTimerExpired = Signal(rawValue: SIGPROF)
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:129:20: warning: static property 'virtualTimerExpired' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
127 |
128 | public static let alarmClock = Signal(rawValue: SIGALRM)
129 | public static let virtualTimerExpired = Signal(rawValue: SIGVTALRM)
| |- warning: static property 'virtualTimerExpired' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'virtualTimerExpired' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
130 | public static let profilingTimerExpired = Signal(rawValue: SIGPROF)
131 |
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:130:20: warning: static property 'profilingTimerExpired' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
128 | public static let alarmClock = Signal(rawValue: SIGALRM)
129 | public static let virtualTimerExpired = Signal(rawValue: SIGVTALRM)
130 | public static let profilingTimerExpired = Signal(rawValue: SIGPROF)
| |- warning: static property 'profilingTimerExpired' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'profilingTimerExpired' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
131 |
132 | /* *** Asynchronous I/O Signals *** */
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:143:20: warning: static property 'ioPossible' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
141 | }
142 |
143 | public static let ioPossible = Signal(rawValue: SIGIO)
| |- warning: static property 'ioPossible' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'ioPossible' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
144 | public static let urgentIOCondition = Signal(rawValue: SIGURG)
145 | #if os(Linux)
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:144:20: warning: static property 'urgentIOCondition' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
142 |
143 | public static let ioPossible = Signal(rawValue: SIGIO)
144 | public static let urgentIOCondition = Signal(rawValue: SIGURG)
| |- warning: static property 'urgentIOCondition' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'urgentIOCondition' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
145 | #if os(Linux)
146 | /** System V signal name, similar to SIGIO. */
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:164:20: warning: static property 'childExited' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
162 | }
163 |
164 | public static let childExited = Signal(rawValue: SIGCHLD)
| |- warning: static property 'childExited' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'childExited' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
165 | /* Obsolete name for SIGCHLD. */
166 | // public static let cildExited = Signal(rawValue: SIGCLD)
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:167:20: warning: static property 'continued' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
165 | /* Obsolete name for SIGCHLD. */
166 | // public static let cildExited = Signal(rawValue: SIGCLD)
167 | public static let continued = Signal(rawValue: SIGCONT)
| |- warning: static property 'continued' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'continued' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
168 | /** Suspends the program. Cannot be handled, ignored or blocked. */
169 | public static let suspendedBySignal = Signal(rawValue: SIGSTOP)
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:169:20: warning: static property 'suspendedBySignal' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
167 | public static let continued = Signal(rawValue: SIGCONT)
168 | /** Suspends the program. Cannot be handled, ignored or blocked. */
169 | public static let suspendedBySignal = Signal(rawValue: SIGSTOP)
| |- warning: static property 'suspendedBySignal' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'suspendedBySignal' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
170 | /** Suspends the program but can be handled and ignored. Usually `Ctrl-Z`. */
171 | public static let suspended = Signal(rawValue: SIGTSTP)
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:171:20: warning: static property 'suspended' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
169 | public static let suspendedBySignal = Signal(rawValue: SIGSTOP)
170 | /** Suspends the program but can be handled and ignored. Usually `Ctrl-Z`. */
171 | public static let suspended = Signal(rawValue: SIGTSTP)
| |- warning: static property 'suspended' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'suspended' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
172 | public static let stoppedTTYInput = Signal(rawValue: SIGTTIN)
173 | public static let stoppedTTYOutput = Signal(rawValue: SIGTTOU)
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:172:20: warning: static property 'stoppedTTYInput' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
170 | /** Suspends the program but can be handled and ignored. Usually `Ctrl-Z`. */
171 | public static let suspended = Signal(rawValue: SIGTSTP)
172 | public static let stoppedTTYInput = Signal(rawValue: SIGTTIN)
| |- warning: static property 'stoppedTTYInput' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'stoppedTTYInput' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
173 | public static let stoppedTTYOutput = Signal(rawValue: SIGTTOU)
174 |
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:173:20: warning: static property 'stoppedTTYOutput' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
171 | public static let suspended = Signal(rawValue: SIGTSTP)
172 | public static let stoppedTTYInput = Signal(rawValue: SIGTTIN)
173 | public static let stoppedTTYOutput = Signal(rawValue: SIGTTOU)
| |- warning: static property 'stoppedTTYOutput' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'stoppedTTYOutput' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
174 |
175 | /* *** Operation Error Signals *** */
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:186:20: warning: static property 'brokenPipe' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
184 | }
185 |
186 | public static let brokenPipe = Signal(rawValue: SIGPIPE)
| |- warning: static property 'brokenPipe' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'brokenPipe' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
187 | // public static let resourceLost = Signal(rawValue: SIGLOST)
188 | public static let cputimeLimitExceeded = Signal(rawValue: SIGXCPU)
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:188:20: warning: static property 'cputimeLimitExceeded' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
186 | public static let brokenPipe = Signal(rawValue: SIGPIPE)
187 | // public static let resourceLost = Signal(rawValue: SIGLOST)
188 | public static let cputimeLimitExceeded = Signal(rawValue: SIGXCPU)
| |- warning: static property 'cputimeLimitExceeded' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'cputimeLimitExceeded' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
189 | public static let filesizeLimitExceeded = Signal(rawValue: SIGXFSZ)
190 |
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:189:20: warning: static property 'filesizeLimitExceeded' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
187 | // public static let resourceLost = Signal(rawValue: SIGLOST)
188 | public static let cputimeLimitExceeded = Signal(rawValue: SIGXCPU)
189 | public static let filesizeLimitExceeded = Signal(rawValue: SIGXFSZ)
| |- warning: static property 'filesizeLimitExceeded' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'filesizeLimitExceeded' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
190 |
191 | /* *** Miscellaneous Signals *** */
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:208:20: warning: static property 'userDefinedSignal1' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
206 | }
207 |
208 | public static let userDefinedSignal1 = Signal(rawValue: SIGUSR1)
| |- warning: static property 'userDefinedSignal1' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'userDefinedSignal1' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
209 | public static let userDefinedSignal2 = Signal(rawValue: SIGUSR2)
210 | public static let windowSizeChanges = Signal(rawValue: SIGWINCH)
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:209:20: warning: static property 'userDefinedSignal2' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
207 |
208 | public static let userDefinedSignal1 = Signal(rawValue: SIGUSR1)
209 | public static let userDefinedSignal2 = Signal(rawValue: SIGUSR2)
| |- warning: static property 'userDefinedSignal2' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'userDefinedSignal2' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
210 | public static let windowSizeChanges = Signal(rawValue: SIGWINCH)
211 | #if !os(Linux)
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:210:20: warning: static property 'windowSizeChanges' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
208 | public static let userDefinedSignal1 = Signal(rawValue: SIGUSR1)
209 | public static let userDefinedSignal2 = Signal(rawValue: SIGUSR2)
210 | public static let windowSizeChanges = Signal(rawValue: SIGWINCH)
| |- warning: static property 'windowSizeChanges' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'windowSizeChanges' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
211 | #if !os(Linux)
212 | public static let informationRequest = Signal(rawValue: SIGINFO)
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/CStructsInSwift/Signal.swift:212:20: warning: static property 'informationRequest' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
5 | /* Could be an enum?
6 | * I’d say no to be able to represent signals we don’t know are a part of the system. */
7 | public struct Signal : RawRepresentable, Hashable, Codable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'Signal' conform to the 'Sendable' protocol
8 |
9 | /* Signal 0 is not considered.
:
210 | public static let windowSizeChanges = Signal(rawValue: SIGWINCH)
211 | #if !os(Linux)
212 | public static let informationRequest = Signal(rawValue: SIGINFO)
| |- warning: static property 'informationRequest' is not concurrency-safe because non-'Sendable' type 'Signal' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'informationRequest' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
213 | #endif
214 |
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[89/99] Compiling SignalHandling SigactionDelayer_Block.swift
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:173:14: warning: static property 'action' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
171 | static let lock = NSConditionLock(condition: Self.nothingToDo.rawValue)
172 |
173 | static var action: Action = .nop
| |- warning: static property 'action' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'action' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'action' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
174 | static var error: Error?
175 |
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:174:14: warning: static property 'error' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
172 |
173 | static var action: Action = .nop
174 | static var error: Error?
| |- warning: static property 'error' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'error' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'error' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
175 |
176 | case nothingToDo
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:191:21: warning: static property 'bootstrapDone' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
189 | private static let signalProcessingQueue = DispatchQueue(label: "com.xcode-actions.blocked-signals-processing-queue")
190 |
191 | private static var bootstrapDone = false
| |- warning: static property 'bootstrapDone' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'bootstrapDone' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'bootstrapDone' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
192 | private static var blockedSignals = [Signal: BlockedSignal]()
193 |
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:192:21: warning: static property 'blockedSignals' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
190 |
191 | private static var bootstrapDone = false
192 | private static var blockedSignals = [Signal: BlockedSignal]()
| |- warning: static property 'blockedSignals' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'blockedSignals' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'blockedSignals' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
193 |
194 | private static func executeOnThread(_ action: ThreadSync.Action) throws {
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Block.swift:82:5: warning: mutation of captured var 'error' in concurrently-executing code [#SendableClosureCaptures]
80 | let ret = pthread_sigmask(SIG_SETMASK, &noSignals, nil /* old signals */)
81 | if ret != 0 {
82 | error = SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
| `- warning: mutation of captured var 'error' in concurrently-executing code [#SendableClosureCaptures]
83 | }
84 | group.leave()
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[90/99] Compiling SignalHandling SigactionDelayer_Unsig.swift
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:130:14: warning: static property 'action' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
128 | static let lock = NSConditionLock(condition: Self.nothingToDo.rawValue)
129 |
130 | static var action: Action = .nop
| |- warning: static property 'action' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'action' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'action' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
131 | static var completionResult: ErrorAndLogs?
132 |
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:131:14: warning: static property 'completionResult' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
129 |
130 | static var action: Action = .nop
131 | static var completionResult: ErrorAndLogs?
| |- warning: static property 'completionResult' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'completionResult' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'completionResult' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
132 |
133 | case nothingToDo
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:150:21: warning: static property 'hasCreatedProcessingThread' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
148 | private static let signalProcessingQueue = DispatchQueue(label: "com.xcode-actions.unsigactioned-signals-processing-queue")
149 |
150 | private static var hasCreatedProcessingThread = false
| |- warning: static property 'hasCreatedProcessingThread' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'hasCreatedProcessingThread' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'hasCreatedProcessingThread' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
151 | private static var unsigactionedSignals = [Signal: UnsigactionedSignal]()
152 |
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:151:21: warning: static property 'unsigactionedSignals' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
149 |
150 | private static var hasCreatedProcessingThread = false
151 | private static var unsigactionedSignals = [Signal: UnsigactionedSignal]()
| |- warning: static property 'unsigactionedSignals' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'unsigactionedSignals' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'unsigactionedSignals' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
152 |
153 | private static func executeOnThread(_ action: ThreadSync.Action) throws {
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/DelayedSigaction/SigactionDelayer_Unsig.swift:302:5: warning: mutation of captured var 'error' in concurrently-executing code [#SendableClosureCaptures]
300 | let ret = pthread_sigmask(SIG_SETMASK, &noSignals, nil /* old signals */)
301 | if ret != 0 {
302 | error = SignalHandlingError.destructiveSystemError(Errno(rawValue: ret))
| `- warning: mutation of captured var 'error' in concurrently-executing code [#SendableClosureCaptures]
303 | }
304 | group.leave()
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[91/99] Compiling SignalHandling DelayedSigactionHandler.swift
[92/99] Compiling SignalHandling Utils.swift
[93/99] Compiling CLTLogger NSLock+Linux.swift
[94/99] Compiling CLTLogger String+Utils.swift
[95/99] Compiling CLTLogger DummySendable.swift
[96/99] Compiling CLTLogger SGR.swift
[97/106] Compiling signal_handling_tests_helper main.swift
/Users/admin/builder/spi-builder-workspace/Sources/signal-handling-tests-helper/main.swift:9:13: warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
7 | struct SignalHandlingTestsHelper : ParsableCommand {
8 |
9 | static var configuration = CommandConfiguration(
| |- warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'configuration' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'configuration' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | subcommands: [
11 | ManualTest.self,
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[98/106] Compiling signal_handling_tests_helper ManualDispatchMemTest.swift
/Users/admin/builder/spi-builder-workspace/Sources/signal-handling-tests-helper/ManualDispatchMemTest.swift:24:13: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
22 | struct ManualDispatchMemTest : ParsableCommand {
23 |
24 | static var logger: Logger?
| |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logger' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 |
26 | func run() throws {
/Users/admin/builder/spi-builder-workspace/Sources/signal-handling-tests-helper/ManualDispatchMemTest.swift:32:24: warning: reference to static property 'logger' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
30 | logger.logLevel = .trace
31 | Self.logger = logger /* We must do this to be able to use the logger from the C handler. */
32 | SignalHandlingConfig.logger?.logLevel = .trace
| `- warning: reference to static property 'logger' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
33 |
34 | let signal = Signal.interrupt
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/SignalHandlingConfig.swift:9:20: note: static property declared here
7 | public enum SignalHandlingConfig {
8 |
9 | public static var logger: Logging.Logger? = {
| `- note: static property declared here
10 | return Logger(label: "com.xcode-actions.signal-handling")
11 | }()
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[99/106] Compiling signal_handling_tests_helper DelaySignalBlock.swift
/Users/admin/builder/spi-builder-workspace/Sources/signal-handling-tests-helper/DelaySignalBlock.swift:20:24: warning: reference to static property 'logger' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | LoggingSystem.bootstrap{ _ in CLTLogger(multilineMode: .allMultiline) }
20 | SignalHandlingConfig.logger?.logLevel = .trace
| `- warning: reference to static property 'logger' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
21 |
22 | let signal = Signal(rawValue: signalNumber)
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/SignalHandlingConfig.swift:9:20: note: static property declared here
7 | public enum SignalHandlingConfig {
8 |
9 | public static var logger: Logging.Logger? = {
| `- note: static property declared here
10 | return Logger(label: "com.xcode-actions.signal-handling")
11 | }()
/Users/admin/builder/spi-builder-workspace/Sources/signal-handling-tests-helper/DelaySignalBlock.swift:29:5: warning: capture of 'doneHandler' with non-Sendable type '(Bool) -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
27 | DispatchQueue.global().asyncAfter(deadline: .now() + .milliseconds(500), execute: {
28 | writeToStdout("allowing signal to be resent")
29 | doneHandler(true)
| |- warning: capture of 'doneHandler' with non-Sendable type '(Bool) -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
30 | })
31 | })
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[100/106] Compiling signal_handling_tests_helper DelaySignalUnsigaction.swift
/Users/admin/builder/spi-builder-workspace/Sources/signal-handling-tests-helper/DelaySignalUnsigaction.swift:18:24: warning: reference to static property 'logger' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
16 | func run() throws {
17 | LoggingSystem.bootstrap{ _ in CLTLogger(multilineMode: .allMultiline) }
18 | SignalHandlingConfig.logger?.logLevel = .trace
| `- warning: reference to static property 'logger' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
19 |
20 | let signal = Signal(rawValue: signalNumber)
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/SignalHandlingConfig.swift:9:20: note: static property declared here
7 | public enum SignalHandlingConfig {
8 |
9 | public static var logger: Logging.Logger? = {
| `- note: static property declared here
10 | return Logger(label: "com.xcode-actions.signal-handling")
11 | }()
/Users/admin/builder/spi-builder-workspace/Sources/signal-handling-tests-helper/DelaySignalUnsigaction.swift:27:5: warning: capture of 'doneHandler' with non-Sendable type '(Bool) -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
25 | DispatchQueue.global().asyncAfter(deadline: .now() + .milliseconds(500), execute: {
26 | writeToStdout("allowing signal to be resent")
27 | doneHandler(true)
| |- warning: capture of 'doneHandler' with non-Sendable type '(Bool) -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
28 | })
29 | })
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[101/106] Emitting module signal_handling_tests_helper
/Users/admin/builder/spi-builder-workspace/Sources/signal-handling-tests-helper/main.swift:9:13: warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
7 | struct SignalHandlingTestsHelper : ParsableCommand {
8 |
9 | static var configuration = CommandConfiguration(
| |- warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'configuration' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'configuration' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | subcommands: [
11 | ManualTest.self,
/Users/admin/builder/spi-builder-workspace/Sources/signal-handling-tests-helper/ManualDispatchMemTest.swift:24:13: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
22 | struct ManualDispatchMemTest : ParsableCommand {
23 |
24 | static var logger: Logger?
| |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logger' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 |
26 | func run() throws {
/Users/admin/builder/spi-builder-workspace/Sources/signal-handling-tests-helper/ManualTest.swift:13:13: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
11 | struct ManualTest : ParsableCommand {
12 |
13 | static var logger: Logger?
| |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logger' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | enum DelayMode : String, ExpressibleByArgument {
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[102/106] Compiling signal_handling_tests_helper ConditionLock.swift
[103/106] Compiling signal_handling_tests_helper ManualTest.swift
/Users/admin/builder/spi-builder-workspace/Sources/signal-handling-tests-helper/ManualTest.swift:13:13: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
11 | struct ManualTest : ParsableCommand {
12 |
13 | static var logger: Logger?
| |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logger' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | enum DelayMode : String, ExpressibleByArgument {
/Users/admin/builder/spi-builder-workspace/Sources/signal-handling-tests-helper/ManualTest.swift:33:24: warning: reference to static property 'logger' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
31 | logger.logLevel = .trace
32 | Self.logger = logger /* We must do this to be able to use the logger from the C handler. */
33 | SignalHandlingConfig.logger?.logLevel = .trace
| `- warning: reference to static property 'logger' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
34 |
35 | try Sigaction(handler: .ansiC({ _ in Self.logger?.debug("In libxct-test-helper sigaction handler for interrupt") })).install(on: .interrupt)
/Users/admin/builder/spi-builder-workspace/Sources/SignalHandling/SignalHandlingConfig.swift:9:20: note: static property declared here
7 | public enum SignalHandlingConfig {
8 |
9 | public static var logger: Logging.Logger? = {
| `- note: static property declared here
10 | return Logger(label: "com.xcode-actions.signal-handling")
11 | }()
/Users/admin/builder/spi-builder-workspace/Sources/signal-handling-tests-helper/ManualTest.swift:46:5: warning: capture of 'doneHandler' with non-Sendable type '(Bool) -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
44 | DispatchQueue.global().asyncAfter(deadline: .now() + .milliseconds(500), execute: { [logger] in
45 | logger.info("Allowing signal to be resent")
46 | doneHandler(true)
| |- warning: capture of 'doneHandler' with non-Sendable type '(Bool) -> Void' in a '@Sendable' closure [#SendableClosureCaptures]
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
47 | })
48 | }
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[103/106] Write Objects.LinkFileList
[104/106] Linking signal-handling-tests-helper
[105/106] Applying signal-handling-tests-helper
Build complete! (7.30s)
Build complete.
{
"dependencies" : [
{
"identity" : "swift-argument-parser",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-argument-parser.git"
},
{
"identity" : "swift-log",
"requirement" : {
"range" : [
{
"lower_bound" : "1.4.2",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-log.git"
},
{
"identity" : "swift-system",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-system.git"
},
{
"identity" : "clt-logger",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0-beta.4",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/xcode-actions/clt-logger.git"
}
],
"manifest_display_name" : "swift-signal-handling",
"name" : "swift-signal-handling",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "11.0"
},
{
"name" : "tvos",
"version" : "14.0"
},
{
"name" : "ios",
"version" : "14.0"
},
{
"name" : "watchos",
"version" : "7.0"
}
],
"products" : [
{
"name" : "SignalHandling",
"targets" : [
"SignalHandling"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "signal-handling-tests-helper",
"targets" : [
"signal-handling-tests-helper"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "signal_handling_tests_helper",
"module_type" : "SwiftTarget",
"name" : "signal-handling-tests-helper",
"path" : "Sources/signal-handling-tests-helper",
"product_dependencies" : [
"ArgumentParser",
"CLTLogger",
"Logging"
],
"product_memberships" : [
"signal-handling-tests-helper"
],
"sources" : [
"ConditionLock.swift",
"DelaySignalBlock.swift",
"DelaySignalUnsigaction.swift",
"ManualDispatchMemTest.swift",
"ManualTest.swift",
"main.swift"
],
"target_dependencies" : [
"SignalHandling"
],
"type" : "executable"
},
{
"c99name" : "SignalHandlingTests",
"module_type" : "SwiftTarget",
"name" : "SignalHandlingTests",
"path" : "Tests/SignalHandlingTests",
"product_dependencies" : [
"CLTLogger",
"Logging"
],
"sources" : [
"LockTest.swift",
"SignalHandlingTests.swift",
"Utils.swift"
],
"target_dependencies" : [
"signal-handling-tests-helper"
],
"type" : "test"
},
{
"c99name" : "SignalHandling",
"module_type" : "SwiftTarget",
"name" : "SignalHandling",
"path" : "Sources/SignalHandling",
"product_dependencies" : [
"Logging",
"SystemPackage"
],
"product_memberships" : [
"SignalHandling",
"signal-handling-tests-helper"
],
"sources" : [
"CStructsInSwift/Sigaction.swift",
"CStructsInSwift/SigactionFlag.swift",
"CStructsInSwift/SigactionHandler.swift",
"CStructsInSwift/Signal.swift",
"DelayedSigaction/DelayedSigaction.swift",
"DelayedSigaction/DelayedSigactionHandler.swift",
"DelayedSigaction/SigactionDelayer_Block.swift",
"DelayedSigaction/SigactionDelayer_Unsig.swift",
"SignalHandlingConfig.swift",
"SignalHandlingError.swift",
"Utils.swift"
],
"type" : "library"
}
],
"tools_version" : "5.8"
}
Done.