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

Terminating nw Process by Ctrl+C Makes Its Children Zombies #70

Closed
KSR-Yasuda opened this issue Jul 5, 2018 · 0 comments · Fixed by #159
Closed

Terminating nw Process by Ctrl+C Makes Its Children Zombies #70

KSR-Yasuda opened this issue Jul 5, 2018 · 0 comments · Fixed by #159

Comments

@KSR-Yasuda
Copy link

KSR-Yasuda commented Jul 5, 2018

By default, nw command waits for its main process termination to remain as the console's foreground process.
At this point, terminate it by Ctrl+C, nw's child processes are not killed and turn into zombies.

nw command invokes 3 or 4 processes.
After Ctrl+C termination, there remain 2 or 3 processes.
I think Ctrl+C would kill just the main process, and left 2~3 processes would be child processes.

On the other hand, terminating via GUI ❎ button works well to clean all the nw processes.


  • OS: Windows 8.1 Pro (x64)
  • Node.js: v8.11.3
  • nw: v0.31.4 (Both of normal ver. and SDK ver.)
    • 💬 Executed $(npm bin)/nw on git bash

Do you have any better solution for this?
I sometimes got OS freeze by this, with nw zombies eat up memory (Horrible!).

In issue #9, they've talked about non-waiting nw execution.
Now I think this may help, at least (Avoid Ctrl+C itself, by making nw non-wait).

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 a pull request may close this issue.

1 participant