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

Add option to prompt.start to skip SIGINT handler #121

Merged
merged 4 commits into from
Aug 5, 2016

Conversation

rubbingalcoholic
Copy link
Contributor

prompt's default behavior binds a process-killing event handler to the SIGINT event (CTRL+C), preventing an app from executing other event handlers when an interrupt is received. This patch gives the prompt.start method a new option ({noHandleSIGINT: true}) to disable this behavior.

Pass `{noHandleSIGINT: true}` to `prompt.start` to disable prompt's default behavior in catching CTRL+C (SIGINT) events.
@gangstead
Copy link
Member

Can you add a note documenting this new feature to the readme? Then I'll merge it.

@rubbingalcoholic
Copy link
Contributor Author

Hi @gangstead, I've added a note to README.md. Let me know if I can help any further. Thanks :)

@gangstead gangstead merged commit e7b5449 into flatiron:master Aug 5, 2016
@mm-spiio
Copy link

not really working for me..

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.

3 participants