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

child process living despite of parent process interrupted. #509

Closed
johnny-mh opened this issue Jan 11, 2018 · 2 comments
Closed

child process living despite of parent process interrupted. #509

johnny-mh opened this issue Jan 11, 2018 · 2 comments

Comments

@johnny-mh
Copy link

johnny-mh commented Jan 11, 2018

When i interrupt below typescript code by press Ctrl+C

Spawned child process living despite of parent process interrupted.

// test.ts
import {spawn} from 'child_process';
spawn('npx', ['ng', 'serve'], {stdio: 'inherit'});

I tested ts-node v4.1.0, node v8.9.1, typescript v2.4.2 environment.

I tested same code with native javascript and execute by node command with below code

Child process killed successfully after parent process interrupted.

// test.js
require('child_process').spawn('npx', ['ng', 'serve'], {stdio: 'inherit'});
@endel
Copy link

endel commented Jan 20, 2018

Seems related to #519 and #419 😢

@blakeembrey
Copy link
Member

Closing with the deletion of child processes in #536.

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

No branches or pull requests

3 participants