Skip to content

Commit

Permalink
Do not print error message to the console when we've failed to instal…
Browse files Browse the repository at this point in the history
…l signal handler. (Kotlin#2118)

Otherwise, it may lead to obscure error messages in the console when users are on Windows and are not aware about signals.
  • Loading branch information
qwwdfsad authored Jul 2, 2020
1 parent ad542c4 commit ff4b2ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kotlinx-coroutines-core/jvm/src/debug/AgentPremain.kt
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ internal object AgentPremain {
}
}
} catch (t: Throwable) {
System.err.println("Failed to install signal handler: $t")
// Do nothing, signal cannot be installed, e.g. because we are on Windows
}
}
}

0 comments on commit ff4b2ce

Please sign in to comment.