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

Suppress backtrace in reaction to Ctrl-C #28

Open
fingolfin opened this issue Mar 3, 2017 · 1 comment
Open

Suppress backtrace in reaction to Ctrl-C #28

fingolfin opened this issue Mar 3, 2017 · 1 comment

Comments

@fingolfin
Copy link
Member

It would be nice if pressing ctrl-c would not print a backtrace. Otherwise, when doing make -j8 and then aborting the build, I get a ton of pointless backtraces.

@fingolfin
Copy link
Member Author

It might be possible to do this by installing our own signal handler for SIGINT, e.g. using https://github.com/LuaDist/lua-signal or https://luaposix.github.io/luaposix/modules/posix.signal.html

Might have to do something else for LuaJIT. Perhaps we can use this example: http://stackoverflow.com/questions/19352389. Note that we only want to exit in the signal handler, so hopefully the caveats listed there do not apply to us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant