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.
2 parents f5a9401 + 5e7e6eb commit 5f1d731Copy full SHA for 5f1d731
Sources/swift-driver/main.swift
@@ -22,11 +22,10 @@ let diagnosticsEngine = DiagnosticsEngine(handlers: [Driver.stderrDiagnosticsHan
22
do {
23
let processSet = ProcessSet()
24
intHandler = try InterruptHandler {
25
- processSet.terminate()
26
- // If the swift-driver invocation is interrupted by the build system,
27
- // returning non-zero value emits red-herring error messages in the build logs.
28
- // So we exit with 0 here.
29
- exit(0)
+ // Ignore the interruption signal.
+ // The underlying swift compiler isn't ready to be safely interrupted yet and
+ // interrupting them may cause red-herring build failures that may pollute the build
+ // log.
30
}
31
32
if ProcessEnv.vars["SWIFT_ENABLE_EXPLICIT_MODULE"] != nil {
0 commit comments