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

Improve/fix interrupt handling in locale Rails console #210

Merged
merged 3 commits into from Dec 6, 2023

Conversation

codener
Copy link
Member

@codener codener commented Dec 1, 2023

Previously, hitting Ctrl + C in a Rails console started by geordi console, the shell would get stuck between bash and console, effectively broken. By using exec instead of system, this can be fixed without having to implement SIGINT handling in Geordi.

See story #186280123.

@codener codener requested a review from tecden December 1, 2023 12:51
end

# This part will never be reached when `exec` is true
Copy link
Contributor

@tecden tecden Dec 6, 2023

Choose a reason for hiding this comment

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

Had to google once to find out how exec works.

For my understanding: This part is never reached because Kernel#exec replaces the current process (geordi) with the process called by exec (rails console)?

Copy link
Member Author

Choose a reason for hiding this comment

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

@tecden tecden self-requested a review December 6, 2023 09:58
Copy link
Contributor

@tecden tecden left a comment

Choose a reason for hiding this comment

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

lgtm

@codener codener merged commit a7e4702 into master Dec 6, 2023
3 checks passed
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

Successfully merging this pull request may close these issues.

None yet

2 participants