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

avoid crashing on SIGINT by not redrawing the UI #76173

Closed
wants to merge 1 commit into from

Conversation

db48x
Copy link
Contributor

@db48x db48x commented Sep 3, 2024

Summary

Bugfixes "avoid crashing on SIGINT by not redrawing the UI"

Purpose of change

Fixes #76130

Not really much point in redrawing the UI when we’re about to be
killed anyway.

Fixes CleverRaven#76130
@github-actions github-actions bot added [C++] Changes (can be) made in C++. Previously named `Code` <Bugfix> This is a fix for a bug (or closes open issue) astyled astyled PR, label is assigned by github actions json-styled JSON lint passed, label assigned by github actions labels Sep 3, 2024
@andrei8l
Copy link
Contributor

andrei8l commented Sep 3, 2024

This is not complete, or even correct:

  1. You're still doing signal-unsafe things in the signal handler. It may work but it's against the spec
  2. The else is redundant, in theory. In practice it isn't because the OS doesn't terminate the process quickly enough after kill().

I think my PR (#75999) is the better solution; it just needs a couple of finishing touches.

@db48x
Copy link
Contributor Author

db48x commented Sep 3, 2024

You are entirely correct, but this patch doesn’t make the current situation any worse and yours isn’t ready yet. If yours gets merged first then this one will have merge conflicts and we can just close it. If mine is merged first then it won't delay yours any.

@github-actions github-actions bot added the BasicBuildPassed This PR builds correctly, label assigned by github actions label Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` json-styled JSON lint passed, label assigned by github actions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash on quit when ctrl+c'ing in the debug menu
2 participants