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

Fix issue #2898: close app nicely on CTRL+C #2986

Merged
merged 1 commit into from
Mar 11, 2019

Conversation

kinow
Copy link
Member

@kinow kinow commented Mar 11, 2019

Fix for #2898 , in the 7.8.x branch (see previous pull request for more).

Encloses GTK main loop in a try/catch, to wait for KeyboardInterrupt and quit nicely.

Another workaround is to use CTRL + \, which sends SIGKILL, but not a well known short-cut (nor really nice/polite to go SIGKILLing processes around 😬

Tested locally from master branch, but alas going with no unit/functional tests, so Codecov won't be happy.

Bruno

@matthewrmshin matthewrmshin added the bug Something is wrong :( label Mar 11, 2019
@matthewrmshin matthewrmshin added this to the next-release milestone Mar 11, 2019
@matthewrmshin
Copy link
Contributor

@hjoliver please sanity check.

Copy link
Member

@hjoliver hjoliver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @kinow

@hjoliver
Copy link
Member

(I suppose a test would be possible: run GUI headless, send kill -s SIGINT ... but not really important for this outgoing GUI...)

@hjoliver hjoliver merged commit 45300f4 into cylc:7.8.x Mar 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is wrong :(
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants