mirror of https://github.com/sbt/sbt.git
When the user presses ctrl+c, we want to cancel any running tasks that were initiated by that client. This is a bit tricky because we may not be sure what is running if the client is in interactive mode. To work around this, we send a cancellation request with the special id __CancelAll. When the NetworkChannel receives this request, it cancels the active task if was initiated by the client that sent the cancellation request. The result it returns to the client indicates if there were any tasks to be cancelled. If there were and the client was in interactive mode, we do not exit. Otherwise we exit. |
||
|---|---|---|
| .. | ||
| contraband | ||
| contraband-scala/sbt | ||
| scala/sbt | ||