File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -54,9 +54,11 @@ public class Cancellator: Cancellable {
54
54
self . register ( name: " \( process. arguments. joined ( separator: " " ) ) " , handler: process. terminate)
55
55
}
56
56
57
+ #if !os(iOS) && !os(watchOS) && !os(tvOS)
57
58
public func register( _ process: Foundation . Process ) -> RegistrationKey ? {
58
59
self . register ( name: " \( process. description) " , handler: process. terminate ( timeout: ) )
59
60
}
61
+ #endif
60
62
61
63
public func deregister( _ key: RegistrationKey ) {
62
64
self . registry [ key] = nil
@@ -140,6 +142,7 @@ extension TSCBasic.Process {
140
142
}
141
143
}
142
144
145
+ #if !os(iOS) && !os(watchOS) && !os(tvOS)
143
146
extension Foundation . Process {
144
147
fileprivate func terminate( timeout: DispatchTime ) {
145
148
// send graceful shutdown signal (SIGINT)
@@ -160,3 +163,4 @@ extension Foundation.Process {
160
163
forceKillThread. join ( )
161
164
}
162
165
}
166
+ #endif
You can’t perform that action at this time.
0 commit comments