Skip to content

Workaround Ctrl+C not exiting debug process #2059

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

Merged
merged 1 commit into from
Sep 14, 2016

Conversation

rosen-vladimirov
Copy link
Contributor

During tns debug ios command, Ctrl + C does not kill the proecss. It looks like there are still resources that do not allow the process to die.
Implement a workaround - call process.exit when SIGINT (Ctrl + C) is received. There's no guarantee that this will release the other resources. However CLI's process will definitely die and console will be released.
Code is based on this PR: telerik/mobile-cli-lib#791

During `tns debug ios` command, Ctrl + C does not kill the proecss. It looks like there are still resources that do not allow the process to die.
Implement a workaround - call process.exit when SIGINT (Ctrl + C) is received. There's no guarantee that this will release the other resources. However CLI's process will definitely die and console will be released.
Code is based on this PR: telerik/mobile-cli-lib#791
@rosen-vladimirov
Copy link
Contributor Author

👍 from @dtopuzov (discussed in personal).

@rosen-vladimirov rosen-vladimirov merged commit a837429 into master Sep 14, 2016
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/kill-my-own-process branch September 14, 2016 13:51
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.

1 participant