{"action":"created","issue":{"url":"https://api.github.com/repos/TypeStrong/ts-node/issues/509","repository_url":"https://api.github.com/repos/TypeStrong/ts-node","labels_url":"https://api.github.com/repos/TypeStrong/ts-node/issues/509/labels{/name}","comments_url":"https://api.github.com/repos/TypeStrong/ts-node/issues/509/comments","events_url":"https://api.github.com/repos/TypeStrong/ts-node/issues/509/events","html_url":"https://github.com/TypeStrong/ts-node/issues/509","id":287721980,"number":509,"title":"child process living despite of parent process interrupted.","user":{"login":"everedifice","id":1061205,"avatar_url":"https://avatars2.githubusercontent.com/u/1061205?v=4","gravatar_id":"","url":"https://api.github.com/users/everedifice","html_url":"https://github.com/everedifice","followers_url":"https://api.github.com/users/everedifice/followers","following_url":"https://api.github.com/users/everedifice/following{/other_user}","gists_url":"https://api.github.com/users/everedifice/gists{/gist_id}","starred_url":"https://api.github.com/users/everedifice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/everedifice/subscriptions","organizations_url":"https://api.github.com/users/everedifice/orgs","repos_url":"https://api.github.com/users/everedifice/repos","events_url":"https://api.github.com/users/everedifice/events{/privacy}","received_events_url":"https://api.github.com/users/everedifice/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-01-11T09:45:25Z","updated_at":"2018-02-19T22:26:38Z","closed_at":"2018-02-19T22:26:38Z","author_association":"NONE","body":"When i interrupt below typescript code by press Ctrl+C\r\n\r\nSpawned child process living despite of parent process interrupted.\r\n\r\n```typescript\r\n// test.ts\r\nimport {spawn} from 'child_process';\r\nspawn('npx', ['ng', 'serve'], {stdio: 'inherit'});\r\n```\r\n\r\nI tested ts-node v4.1.0, node v8.9.1, typescript v2.4.2 environment.\r\n\r\n\r\n\r\nI tested same code with native javascript and execute by `node` command with below code\r\n\r\nChild process killed successfully after parent process interrupted.\r\n\r\n\r\n```javascript\r\n// test.js\r\nrequire('child_process').spawn('npx', ['ng', 'serve'], {stdio: 'inherit'});\r\n```"},"comment":{"url":"https://api.github.com/repos/TypeStrong/ts-node/issues/comments/366817192","html_url":"https://github.com/TypeStrong/ts-node/issues/509#issuecomment-366817192","issue_url":"https://api.github.com/repos/TypeStrong/ts-node/issues/509","id":366817192,"user":{"login":"blakeembrey","id":1088987,"avatar_url":"https://avatars0.githubusercontent.com/u/1088987?v=4","gravatar_id":"","url":"https://api.github.com/users/blakeembrey","html_url":"https://github.com/blakeembrey","followers_url":"https://api.github.com/users/blakeembrey/followers","following_url":"https://api.github.com/users/blakeembrey/following{/other_user}","gists_url":"https://api.github.com/users/blakeembrey/gists{/gist_id}","starred_url":"https://api.github.com/users/blakeembrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blakeembrey/subscriptions","organizations_url":"https://api.github.com/users/blakeembrey/orgs","repos_url":"https://api.github.com/users/blakeembrey/repos","events_url":"https://api.github.com/users/blakeembrey/events{/privacy}","received_events_url":"https://api.github.com/users/blakeembrey/received_events","type":"User","site_admin":false},"created_at":"2018-02-19T22:26:38Z","updated_at":"2018-02-19T22:26:38Z","author_association":"OWNER","body":"Closing with the deletion of child processes in https://github.com/TypeStrong/ts-node/pull/536."}}
{"actor":{"display_login":"blakeembrey"}}