-
-
Notifications
You must be signed in to change notification settings - Fork 35.6k
child_process.spawn sh not killableΒ #2098
Copy link
Copy link
Closed
Labels
child_processIssues and PRs related to the child_process subsystem.Issues and PRs related to the child_process subsystem.docIssues and PRs related to the documentations.Issues and PRs related to the documentations.
Metadata
Metadata
Assignees
Labels
child_processIssues and PRs related to the child_process subsystem.Issues and PRs related to the child_process subsystem.docIssues and PRs related to the documentations.Issues and PRs related to the documentations.
Comming from here:
darkguy2008/parallelshell#22
(btw: Usecase for #1009)
Everytime I need to spawn a process I do it like this
The problem:
childis unkillable on unix.Example in coffee-script:
(on windows it works fine with sh replaced by cmd)
Even when I exit the process with
process.exit(), the child stays alive.Workaround I found:
Killing by pgid works, by pid works not. Sending ^C from console works also, I assume it uses pgid always.