eframe should handle sigint/ctrlc signals #7752
transkatgirl
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
eframe's App trait includes the on_exit() function, which is useful for allowing applications which keep track of user state to gracefully shutdown when the application is closed. However, although these respond to the application window being closed, sending a SIGINT signal to the program (or running it in a terminal and pressing ctrl+c) causes it to abruptly close without calling on_exit().
This should probably be handled in eframe, rather than requiring anybody building an application on top of eframe to reimplement signal handling themselves.
Beta Was this translation helpful? Give feedback.
All reactions