{"id":18084544,"url":"https://github.com/endel/ts-node-graceful-shutdown-issue","last_synced_at":"2025-04-06T00:11:24.980Z","repository":{"id":137835581,"uuid":"109537514","full_name":"endel/ts-node-graceful-shutdown-issue","owner":"endel","description":"Demonstrating issue with graceful shutting down ts-node, using cluster module","archived":false,"fork":false,"pushed_at":"2018-01-20T18:17:25.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-12T06:21:15.840Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/TypeStrong/ts-node/issues/519","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/endel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-04T23:26:02.000Z","updated_at":"2018-01-21T19:31:15.000Z","dependencies_parsed_at":"2023-06-07T06:45:52.527Z","dependency_job_id":null,"html_url":"https://github.com/endel/ts-node-graceful-shutdown-issue","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endel%2Fts-node-graceful-shutdown-issue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endel%2Fts-node-graceful-shutdown-issue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endel%2Fts-node-graceful-shutdown-issue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endel%2Fts-node-graceful-shutdown-issue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/endel","download_url":"https://codeload.github.com/endel/ts-node-graceful-shutdown-issue/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247415973,"owners_count":20935387,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-31T15:07:08.027Z","updated_at":"2025-04-06T00:11:24.955Z","avatar_url":"https://github.com/endel.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ts-node: issue listening to `SIGINT` using child processes \n\nWhilst issue [457](https://github.com/TypeStrong/ts-node/issues/457) has been fixed on version `4.1.x` of `ts-node`, when using child processes, `ts-node` is still miss-behaving.\n\nI'm using the `cluster` module, and listening for the `SIGINT` signal on the master and child processes.\n\n## `ts-node` behaviour:\n\nSIGINT can be catched only for the master process.\n\n```\n$ ./node_modules/.bin/ts-node index.ts\n^CShutting down MASTER...\nMASTER has been shut down.\n```\n\n## `node` behaviour:\n\nSIGINT can be catched for master and child process.\n\n```\n$ node index.js\n^CShutting down CHILD...\nShutting down MASTER...\nCHILD has been shut down.\nMASTER has been shut down.\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fendel%2Fts-node-graceful-shutdown-issue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fendel%2Fts-node-graceful-shutdown-issue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fendel%2Fts-node-graceful-shutdown-issue/lists"}