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

Can be SIGINT enabled (again)? #4583

Open
MikeGM2017 opened this issue Mar 5, 2021 · 3 comments
Open

Can be SIGINT enabled (again)? #4583

MikeGM2017 opened this issue Mar 5, 2021 · 3 comments
Labels
enhancement feature help wanted Issue not worked on by OTP; help wanted from the community priority:low team:VM Assigned to OTP team VM

Comments

@MikeGM2017
Copy link

I am trying to use Erlang as variant in my project mCli (Module Console framework).
I can hook Ctrl+C and Ctrl+, but Ctrl+Z can not be hooked now (in Ubuntu 18).
But I see in Erlang source that SIGINT was added, but commented by some reasons.

Can be SIGINT enabled (again)? (May be as additional command line switch ?)

( commit: erts: Do not enable SIGINT
@psyeugenic psyeugenic committed on 2 Feb 2017 commit d3506c8 )

@paulo-ferraz-oliveira
Copy link
Contributor

@MikeGM2017, I think you'll find more details in #1315, the pull request that adds the commit you mention.

@MikeGM2017
Copy link
Author

MikeGM2017 commented Mar 5, 2021 via email

@rickard-green rickard-green added the team:VM Assigned to OTP team VM label Mar 8, 2021
@garazdawi
Copy link
Contributor

But I see in Erlang source that SIGINT was added, but commented by some reasons.

Ctrl+C is commented out because it is handled internally in the emulator.

It could be possible to change it to be added when +B i or +B d have been set (or maybe a better idea is to add a new option that passes it along). I do not know if there are also cross-platform concerns that need to be taken into account. This is not something that is high priority on our list of things to do, so if you need it, the fastest way to get it done is to submit a PR (with tests and documentation).

@garazdawi garazdawi added feature help wanted Issue not worked on by OTP; help wanted from the community priority:low labels Mar 8, 2021
@garazdawi garazdawi removed their assignment Mar 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement feature help wanted Issue not worked on by OTP; help wanted from the community priority:low team:VM Assigned to OTP team VM
Projects
None yet
Development

No branches or pull requests

4 participants