We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70dbfa6 commit 2742168Copy full SHA for 2742168
Sources/swift-parser-test/swift-parser-test.swift
@@ -15,6 +15,9 @@ import SwiftSyntax
15
import SwiftParser
16
import Foundation
17
import ArgumentParser
18
+#if os(Windows)
19
+import WinSDK
20
+#endif
21
22
enum CommonError: Swift.Error {
23
case readingSourceFileFailed(URL)
@@ -229,7 +232,11 @@ class Reduce: ParsableCommand {
229
232
230
233
try process.run()
231
234
if sema.wait(timeout: DispatchTime.now() + .seconds(1)) == .timedOut {
235
236
+ _ = TerminateProcess(process.processHandle, 0)
237
+#else
238
kill(pid_t(process.processIdentifier), SIGKILL)
239
240
return .timeout
241
}
242
switch process.terminationStatus {
0 commit comments