-
Notifications
You must be signed in to change notification settings - Fork 219
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
QUIT signal handler ignored #912
Comments
Can you try with |
I've just tried, but no change and same outcome for the |
Could you provide a small reproducer maybe ? Is that specific to given a platform / environment ? |
Sure, added here: # checkout branch 912-quit-signal-handler
mvn clean package
java -jar target/quarkus-app/quarkus-run.jar
# press Ctrl+Z, prints TSTP
# press Ctrl+\, prints thread dump (instead of QUIT)
# press Ctrl+C, exists Not sure if that's specific to an environment.. I'm using Linux with the Java/JLine versions mentioned above. |
It seems the only way to disable thread dump is to use |
Hmm ok, thanks. I'm just curious how the |
I was wondering the exact same thing when I looked at it yesterday... I don't recall... |
Ah, I think I know. It does work if the client is not a JVM. For example, you can connect to a JLine based virtual terminal using an openssh client. In such case, the correct signal will be sent through the terminal and be caught and handled by the terminal. |
Got it, thanks |
Registering a handler for QUIT is ignored in my example applications. The other handlers (INT for
Ctrl+c
, TSTP, etc.) work as expected.Example:
When running the app,
Ctrl+c
andCtrl+z
result in the expected behavior (e.g. printingTSTP
), but hittingCtrl+\
prints a thread dump instead ofQUIT
.This might be connected to #441.
I'm using Jline
3.23.0
andOpenJDK Runtime Environment Temurin-21.0.1+12 (build 21.0.1+12-LTS)
The text was updated successfully, but these errors were encountered: