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

Gradle Ctrl-C Not Terminating Ktor SuspendApp #110

Open
jamesward opened this issue Dec 12, 2023 · 2 comments
Open

Gradle Ctrl-C Not Terminating Ktor SuspendApp #110

jamesward opened this issue Dec 12, 2023 · 2 comments

Comments

@jamesward
Copy link

Repro Steps:
https://github.com/jamesward/kmp-conf-server

./gradlew runDebugExecutableLinuxX64

(Not sure if the same problem exists on Mac)

Hit Ctrl-C and see the Gradle process end, but the native server process continues running even after multiple minutes:

$ ps auxwww|grep kmp-conf-server
jw        847540  0.1  0.0 554808 28072 ?        Sl   16:09   0:00 /home/jw/projects/kmp-conf-server/build/bin/linuxX64/debugExecutable/kmp-conf-server.kexe
@i-walker
Copy link
Member

This might be related to #109 cc @nomisRev

@nomisRev
Copy link
Member

Hey @jamesward,

Thanks for your support & interest in this project. As far as I know this is a Gradle issue, where the SIGINT signal is not properly propagated to the running forked processes.

If you know some fix we can apply to our side, or add some Gradle documentation on how to fix this that'd be awesome.

Some references:

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

3 participants