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

Show stack trace but not quit on SIGQUIT #411

xiaq opened this issue Jul 8, 2017 · 0 comments

Show stack trace but not quit on SIGQUIT #411

xiaq opened this issue Jul 8, 2017 · 0 comments


Copy link

xiaq commented Jul 8, 2017

Right now SIGQUIT will make Elvish show a stack trace and crash. This is intended, since that agrees with the intended semantics of SIGQUIT.

However, most other shells just ignore SIGQUIT, so the fact that Ctrl-\ kills Elvish can be a bit surprising.

It is sometimes useful, for debugging, to get a stack trace when Elvish is running. So let's make SIGQUIT just show a stack trace but not crash Elvish.

Admittedly, the most appropriate signal for this is SIGINFO, but this signal is not universally available -- in fact, only available on FreeBSD, AFAIK.

@xiaq xiaq added this to the 0.10 milestone Jul 8, 2017
@xiaq xiaq closed this as completed in 143439f Jul 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

No branches or pull requests

1 participant