Bug 494592 - Node.js application children processes can not be killed from eclipse console
Summary: Node.js application children processes can not be killed from eclipse console
Status: NEW
Alias: None
Product: JSDT
Classification: WebTools
Component: Debug (show other bugs)
Version: 3.7.1   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Victor Rubezhny CLA
URL:
Whiteboard: RHT
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-25 17:54 EDT by Adalberto Lopez Venegas CLA
Modified: 2018-07-30 22:28 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adalberto Lopez Venegas CLA 2016-05-25 17:54:56 EDT
When running a simple Node.js application like:

var child_process = require('child_process');

child_process.exec('ping www.google.com -t', function (err, stdout, stderr){
    if (err) {
        console.log("child processes failed with error code: " +
            err.code);
    }
    console.log(stdout);
});

If you terminate the running process the "ping www.google.com -t" child process is still running even when the parent process is already killed.

This happens with one or more children processes.
Comment 1 Angelo ZERR CLA 2017-10-26 15:01:20 EDT
IMHO I think JSDT should use Terminal TM to execute node.js

I have implemented this feature inside typescript.java where you can execute command with Java API.

If you are interested with this feature, please tell me.