Skip to content

Commit 7b0d17b

Browse files
gmittertaciidgh
authored andcommitted
Fix Up ProcessSet for Windows
Windows doesn't have SIGKILL, we'll use SIGTERM instead
1 parent eb39add commit 7b0d17b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/Basic/ProcessSet.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,11 @@ public final class ProcessSet {
8989
}
9090
}
9191
// Send kill signal to all processes.
92+
#if os(Windows)
93+
self.signalAll(SIGTERM)
94+
#else
9295
self.signalAll(SIGKILL)
96+
#endif
9397
}
9498

9599
thread.start()

0 commit comments

Comments
 (0)