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

Heroku Local does not terminate correctly under WIndows #2561

Open
armordog opened this issue Nov 21, 2023 · 3 comments
Open

Heroku Local does not terminate correctly under WIndows #2561

armordog opened this issue Nov 21, 2023 · 3 comments

Comments

@armordog
Copy link

This project is for the Heroku CLI only and issues are reviewed as we are able. If you need more immediate assistence or help with anything not specific to the CLI itself, please use https://help.heroku.com.

Do you want to request a feature or report a bug?

BUG

What is the current behavior?

Terminating the local server with Ctrl+C always orphans the node process.
So that running heroku local again complains that the port is in use.
I have to manually kill the node process.

It says

[WARN] Interrupted by User
[DONE] Killing all processes with signal  SIGINT
^CTerminate batch job (Y/N)?

What is the expected behavior?

Ctrl+C should not orphan its processes.

Heroku Version: heroku/8.7.1 win32-x64
OS: Windows 10 Pro

@k80bowman
Copy link
Contributor

@armordog thank you for reporting this, we will take a look.

@justinwilaby
Copy link
Contributor

Hi @armordog -

We've looked at your issue with multiple attempts to reproduce the problem but have not had success. All child processes have terminated as expected in every scenario we tried.

When you get a chance, please clone the node-js-getting-started repo and run heroku local for the project and let me know if you can repro here. This is a simple program and will eliminate variables that may exist in more complex projects.

Also, please let us know your Node version and which terminal you are using, e.g. powershell, git BASH, cmd, zsh, etc. as this will help us zero in on specific behaviors. The message: Terminate batch job (Y/N)? indicates you may be using cmd.exe. Although I do not anticipate a different behavior when using a Powershell or Git BASH terminal, it may be worth trying in case system configurations are different.

Thank you!

@sbosio
Copy link
Contributor

sbosio commented Mar 25, 2024

GUS Work Item (Heroku internal)

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

4 participants