Skip to content
This repository was archived by the owner on Apr 22, 2025. It is now read-only.
This repository was archived by the owner on Apr 22, 2025. It is now read-only.

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

@Intex32

Description

@Intex32

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions