@@ -136,7 +136,7 @@ public struct ProcessInvocation : AsyncSequence {
136136 It can be set
137137 to `.none`, which means the default `PATH` env variable will be used,
138138 to `.some(.none)`, in which case the default `PATH` is used (`_PATH_DEFPATH`, see `exec(3)`) or
139- to a non-nil value, in which case this value is used. */
139+ to a non-` nil` value, in which case this value is used. */
140140 public var customPATH : [ FilePath ] ? ? = nil
141141
142142 public var workingDirectory : URL ? = nil
@@ -420,7 +420,7 @@ public struct ProcessInvocation : AsyncSequence {
420420 if let environment = environment { p. environment = environment}
421421 if let workingDirectory = workingDirectory { p. currentDirectoryURL = workingDirectory}
422422
423- var fdWhoseFgPgIDShouldBeRevertedOnError : FileDescriptor ?
423+ nonisolated ( unsafe ) var fdWhoseFgPgIDShouldBeRevertedOnError : FileDescriptor ?
424424 var fdsToCloseInCaseOfError = Set < FileDescriptor > ( )
425425 var fdToSwitchToBlockingInCaseOfError = Set < FileDescriptor > ( )
426426 var countOfDispatchGroupLeaveInCaseOfError = 0
@@ -699,7 +699,7 @@ public struct ProcessInvocation : AsyncSequence {
699699 }
700700 signalCleaningOnError = signalCleanupHandler
701701
702- let additionalTerminationHandler : ( Process ) -> Void = { _ in
702+ let additionalTerminationHandler : @ Sendable ( Process ) -> Void = { _ in
703703 Conf . logger? . debug ( " Called in termination handler of process. " )
704704 if let fdWhoseFgPgIDShouldBeSet {
705705 /* Let’s revert the fg pg ID back to our pg ID. */
0 commit comments