randy3k / Terminus

Bring a real terminal to Sublime Text
https://packagecontrol.io/packages/Terminus
MIT License
1.39k stars 81 forks source link

Exited terminus and now cannot shut down node server running at port 3000 #205

Open 619 opened 4 years ago

619 commented 4 years ago

The terminus window disappeared for some reason and now there is a node server running on port 3000 with no way to shut it down except by calling lsof. Bizarre.

randy3k commented 4 years ago

I believe you will see the same behavior in other terminal emulators. Not exactly Terminus's fault.

randy3k commented 4 years ago

By the same behavior, I meant if the terminal's exited unexpectedly, then the underlying process may become an orphan.

In your case, I have no idea why the Terminus window exited.

619 commented 4 years ago

What OS are you on? This is not the default behaviour in terminal, I just checked.

EDIT: Sorry I meant in Mac OS terminal.

randy3k commented 4 years ago

It doesn't always happen, but theoretically, it could happen if the parent process quitted unexpectedly.

randy3k commented 4 years ago

I didn't mean to close it.

619 commented 4 years ago

Is there an option to close all processes when the window is closed, or to ask the user to close all processes when the window is about to close?

Screen Shot 2020-04-18 at 5 44 38 PM
randy3k commented 4 years ago

Normally, the process will be closed along with the Terminus window. I have no idea why it didn't close for you.