Skip to content

Commit ff4b2ce

Browse files
authored
Do not print error message to the console when we've failed to install signal handler. (#2118)
Otherwise, it may lead to obscure error messages in the console when users are on Windows and are not aware about signals.
1 parent ad542c4 commit ff4b2ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kotlinx-coroutines-core/jvm/src/debug/AgentPremain.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ internal object AgentPremain {
6969
}
7070
}
7171
} catch (t: Throwable) {
72-
System.err.println("Failed to install signal handler: $t")
72+
// Do nothing, signal cannot be installed, e.g. because we are on Windows
7373
}
7474
}
7575
}

0 commit comments

Comments
 (0)