Hyper: Closing hyperterm doesn't quit processes

Created on 15 Aug 2016  路  23Comments  路  Source: vercel/hyper

I had hyperterm opened with a process to start a http server with node, but I quit hyperterm and the node process is still alive. So the only way to kill the http server is to find the PID and kill it manually :/

馃憖 Awaiting Response 馃槹 Can't Reproduce

Most helpful comment

I use Hyper on Windows, with the Linux Subsystem. I'm using zsh as my shell. When closing Hyper, the zsh processes are still running in the background

All 23 comments

Hi @tleunen -- is this against latest master, or 0.7.x?

Yes, with Version 0.7.1 (0.7.1.36) (build from brew)

Can you try against master using the Contribute instructions in the readme?

Same on master. Run something, start a node http server for example and then quit (cmd+q).

a question: how do I quit a process? I used command + dot in Terminap.app

OK I see it is using ctrl + c.

I can't reproduce it here 馃槙 Can you provide more info and perhaps a snippet of the server that you are using? with list running, if I quit the terminal the server goes away.

Steps:

  1. Run micro-list: list
  2. Quit hyperterm with cmd+q.

Notice localhost:3000 is still accessible.

But I just noticed it's the same behavior in the mac terminal, except it warns that a process is running before quitting.

Which shell are you using?
cant-reproduce
_(WTF is this shadows doing 馃)_

zsh

Same here 馃槹 Let's see if someone else can reproduce 馃

Anyway, it's the same behavior in the mac terminal... I'll try to find if there's a setting in my zsh making it keeping the process alive.

But could we have a prompt before exiting when a process is running? Do you know if there's already a ticket, or should I create a new one?

I do not remember seeing any issue about this. Go ahead 鈽猴笍

Since 1) I can't reproduce 2) You report seeing the same behavior on Terminal.app, I'm closing this 馃槃 Feel free to reopen it or add more info anytime 馃槃

I'm also facing the same issue here. I'm on Linux (Ubuntu 16.04). Hyper process won't quit. If I try to close and open it again, there will be two processes running. :-)

Can you reproduce the same behavior in another terminal app, @THPubs?

@matheuss Nope. The system's gnome-terminal is working fine. Even checked with another electron app (Atom). It also behaves normally. Process killed after closing. :-)

I have a similar issue running zsh on HyperTerm 0.7.1. If I close the shell via Ctrl-D (or via the window managers default exitting signal (Super + Shift + Q on i3wm)) HyperTerm continues to run in the background. Maybe this might be the reason background-processes continue to run in the HyperTerm process.

I tested it by running a xfce4terminal, starting HyperTerm by inputting HyperTerm into the first terminal window and closing the HyperTerm window again. The HyperTerm process is still running, the child processes I tested in HyperTerm themselves stopped, though.

Now I don't know, whether this is a separate issue or not (or whether it's applicable in this same context) but I thought I first start to explain my troubles here, than opening a new issue. :wink:

I use Hyper on Windows, with the Linux Subsystem. I'm using zsh as my shell. When closing Hyper, the zsh processes are still running in the background

Yep. Process still running after closing Hyper. Git bash not doing this, because it prompts if I want to terminate the process. If I choose no the terminal stays open, otherwise the terminal and process are terminated with Git Bash.

I use Hyper on Windows, with the Linux Subsystem. I'm using zsh as my shell. When closing Hyper, the zsh processes are still running in the background

That's happening to me also. I'm using WSL (Ubuntu) with ZSH and when I close the Hyper Window zsh process still alive.

That is happend to me too in 2019, I'm using ubuntu 19.10, and to kill the process I have to do it manually by searching the process id and kill it with kill {process-id} command.

Is there a solution to this? Or should we open a new issue since this still persists in 2020?

I am using fish. In hyper config, I have
shell: 'fish.exe',

and if I close hyper without typing exit then, the fish process doesn't quit and keeps running in the background. If I open another hyper instance or hyper again, then more fish shells are created thereby eating up memory.

I tried the same with bash.exe as well.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alejandrofloresm picture alejandrofloresm  路  3Comments

hxnt picture hxnt  路  3Comments

yvan-sraka picture yvan-sraka  路  3Comments

laur1s picture laur1s  路  3Comments

dbkaplun picture dbkaplun  路  3Comments