Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SIGINT event in windows terminal does not terminate the jar application (using ktor module) #70

Open
Intex32 opened this issue May 3, 2023 · 0 comments

Comments

@Intex32
Copy link

Intex32 commented May 3, 2023

I used the Ktor example of SuspendApp and generated a jar file.
When run on windows, the process does not terminate on SIGINT (Ctrl+c). Notably, the ktor server shuts down, nevertheless the process still keeps running. When pressing Ctrl+c another time, the processes finally terminates. On linux however (using the same jar), the application terminates gracefully as expected.

fun main() = SuspendApp {
  resourceScope {
    server(Netty) { ... }
    awaitCancellation()
  }
}

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant