René's URL Explorer Experiment


Title: SIGTERM handler does not run if there are no tasks running and exit code is always 0 · Issue #28502 · nodejs/node · GitHub

Open Graph Title: SIGTERM handler does not run if there are no tasks running and exit code is always 0 · Issue #28502 · nodejs/node

X Title: SIGTERM handler does not run if there are no tasks running and exit code is always 0 · Issue #28502 · nodejs/node

Description: Version: v11.15.0 Platform: Linux tsundberg-dev 4.18.0-20-generic #21~18.04.1-Ubuntu SMP Wed May 8 08:43:37 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux Subsystem: process To run the following tests paste them into index.js and run node index...

Open Graph Description: Version: v11.15.0 Platform: Linux tsundberg-dev 4.18.0-20-generic #21~18.04.1-Ubuntu SMP Wed May 8 08:43:37 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux Subsystem: process To run the following tests pas...

X Description: Version: v11.15.0 Platform: Linux tsundberg-dev 4.18.0-20-generic #21~18.04.1-Ubuntu SMP Wed May 8 08:43:37 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux Subsystem: process To run the following tests pas...

Opengraph URL: https://github.com/nodejs/node/issues/28502

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"SIGTERM handler does not run if there are no tasks running and exit code is always 0","articleBody":"\u003c!--\r\nThank you for reporting a possible bug in Node.js.\r\n\r\nPlease fill in as much of the template below as you can.\r\n\r\nVersion: output of `node -v`\r\nPlatform: output of `uname -a` (UNIX), or version and 32 or 64-bit (Windows)\r\nSubsystem: if known, please specify the affected core module name\r\n\r\nIf possible, please provide code that demonstrates the problem, keeping it as\r\nsimple and free of external dependencies as you can.\r\n-->\r\n\r\n* **Version**: v11.15.0\r\n* **Platform**: Linux tsundberg-dev 4.18.0-20-generic #21~18.04.1-Ubuntu SMP Wed May 8 08:43:37 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux\r\n* **Subsystem**: process\r\n\r\n\u003c!-- Please provide more details below this comment. -->\r\n---\r\nTo run the following tests paste them into `index.js` and run `node index.js; echo $?`\r\n\r\n---\r\n#### Case 1\r\nThe following results in an expected output:\r\n```node\r\nprocess.kill(process.pid, 'SIGTERM')\r\n```\r\nOutput:\r\n```\r\nTerminated\r\n143\r\n```\r\n---\r\n#### Case 2\r\nAdding a SIGTERM results in an exit code of 0, and the handler never runs:\r\n```node\r\nprocess.on('SIGTERM', () => {\r\n    console.error('Handle ran!')\r\n    process.exit(1)\r\n})\r\n\r\nprocess.kill(process.pid, 'SIGTERM')\r\n```\r\nOutput:\r\n```\r\n0\r\n```\r\n---\r\n#### Case 3\r\nAdding a timeout or some other task that keeps node alive results in the expected behavior:\r\n```node\r\nprocess.on('SIGTERM', () => {\r\n    console.error('Handle ran!')\r\n    process.exit(1)\r\n})\r\n\r\nprocess.kill(process.pid, 'SIGTERM')\r\n\r\nsetTimeout(() => {}, 100000)\r\n```\r\nOutput:\r\n```\r\nHandle ran!\r\n1\r\n```","author":{"url":"https://github.com/TrevorSundberg","@type":"Person","name":"TrevorSundberg"},"datePublished":"2019-07-01T23:10:52Z","url":"https://github.com/nodejs/node/issues/28502"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:8911b280-6288-e241-1036-fc3812bc133c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA482:35D054:427D76:56072A:6AED21C9
html-safe-nonce365ed7dd9bd011e72c2144e04770fa6e71d925310fb8ad2adb9d86af1ac5e772
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDgyOjM1RDA1NDo0MjdENzY6NTYwNzJBOjZBRUQyMUM5IiwidmlzaXRvcl9pZCI6IjU5NTU3MDExNTk2NzY5NDQ4NDEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacd5d30d0d8a73a8bc485d438a6da1877bce96404fe7e5444fa28e8fb85f1c940b
hovercard-subject-tagissue:462949506
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/28502/issue_layout
twitter:imagehttps://opengraph.githubassets.com/5c1b108b293417571a30cdadae1b2a45ee289a48438efe13c0bde5754542bd99/nodejs/node/issues/28502
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5c1b108b293417571a30cdadae1b2a45ee289a48438efe13c0bde5754542bd99/nodejs/node/issues/28502
og:image:altVersion: v11.15.0 Platform: Linux tsundberg-dev 4.18.0-20-generic #21~18.04.1-Ubuntu SMP Wed May 8 08:43:37 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux Subsystem: process To run the following tests pas...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameTrevorSundberg
hostnamegithub.com
expected-hostnamegithub.com
Nonee3e0f7f63e50c6fe879198a93a0a023a648ecc0a5e9bc3b5e033ac57172237e6
turbo-cache-controlno-preview
go-importgithub.com/nodejs/node git https://github.com/nodejs/node.git
octolytics-dimension-user_id9950313
octolytics-dimension-user_loginnodejs
octolytics-dimension-repository_id27193779
octolytics-dimension-repository_nwonodejs/node
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id27193779
octolytics-dimension-repository_network_root_nwonodejs/node
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release707a24b346ac8a82878b9c084efaa38a997660cb
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/nodejs/node/issues/28502#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F28502
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F28502
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=nodejs%2Fnode
Reloadhttps://github.com/nodejs/node/issues/28502
Reloadhttps://github.com/nodejs/node/issues/28502
Reloadhttps://github.com/nodejs/node/issues/28502
nodejshttps://github.com/nodejs
nodehttps://github.com/nodejs/node
Codehttps://github.com/nodejs/node
Issues656 (656)https://github.com/nodejs/node/issues
Pull requests666 (666)https://github.com/nodejs/node/pulls
Actionshttps://github.com/nodejs/node/actions
Projectshttps://github.com/nodejs/node/projects
Security and qualityhttps://github.com/nodejs/node/security
Insightshttps://github.com/nodejs/node/pulse
https://github.com/nodejs/node
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/28502
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/28502
#65243https://github.com/nodejs/node/pull/65243
SIGTERM handler does not run if there are no tasks running and exit code is always 0https://github.com/nodejs/node/issues/28502#top
#65243https://github.com/nodejs/node/pull/65243
confirmed-bugIssues and PRs for confirmed bugs.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22confirmed-bug%22
processIssues and PRs related to the process subsystem.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22process%22
https://github.com/TrevorSundberg
TrevorSundberghttps://github.com/TrevorSundberg
on Jul 1, 2019https://github.com/nodejs/node/issues/28502#issue-462949506
add issue contributing section #21https://github.com/nodejs/node/pull/21
https://github.com/mscdex
mscdexhttps://github.com/mscdex
on Jul 1, 2019https://github.com/nodejs/node/issues/28502#issuecomment-507463194
https://github.com/addaleax
addaleaxhttps://github.com/addaleax
on Jul 1, 2019https://github.com/nodejs/node/issues/28502#issuecomment-507463591
addaleaxhttps://github.com/addaleax
libuvIssues and PRs related to the libuv dependency or the uv binding.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22libuv%22
on Jul 1, 2019https://github.com/nodejs/node/issues/28502#event-2452720809
https://github.com/TrevorSundberg
TrevorSundberghttps://github.com/TrevorSundberg
on Jul 1, 2019https://github.com/nodejs/node/issues/28502#issuecomment-507464854
@mscdexhttps://github.com/mscdex
https://github.com/mscdex
mscdexhttps://github.com/mscdex
on Jul 2, 2019https://github.com/nodejs/node/issues/28502#issuecomment-507472894
https://github.com/addaleax
addaleaxhttps://github.com/addaleax
on Jul 2, 2019https://github.com/nodejs/node/issues/28502#issuecomment-507473221
@mscdexhttps://github.com/mscdex
https://github.com/bnoordhuis
bnoordhuishttps://github.com/bnoordhuis
on Jul 2, 2019https://github.com/nodejs/node/issues/28502#issuecomment-507584982
@addaleaxhttps://github.com/addaleax
node/lib/internal/process/main_thread_only.jshttps://github.com/nodejs/node/blob/83c1e173ea77e48297bac5da7af636bb6ad20d63/lib/internal/process/main_thread_only.js#L134-L141
83c1e17https://github.com/nodejs/node/commit/83c1e173ea77e48297bac5da7af636bb6ad20d63
bnoordhuishttps://github.com/bnoordhuis
confirmed-bugIssues and PRs for confirmed bugs.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22confirmed-bug%22
processIssues and PRs related to the process subsystem.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22process%22
libuvIssues and PRs related to the libuv dependency or the uv binding.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22libuv%22
on Jul 2, 2019https://github.com/nodejs/node/issues/28502#event-2453615741
https://github.com/bnoordhuis
bnoordhuishttps://github.com/bnoordhuis
on Jul 9, 2019https://github.com/nodejs/node/issues/28502#issuecomment-509557586
libuv/libuv#2370https://github.com/libuv/libuv/issues/2370
https://github.com/addaleax
addaleaxhttps://github.com/addaleax
on Jul 10, 2019https://github.com/nodejs/node/issues/28502#issuecomment-510231000
@bnoordhuishttps://github.com/bnoordhuis
https://github.com/bnoordhuis
bnoordhuishttps://github.com/bnoordhuis
on Jul 11, 2019https://github.com/nodejs/node/issues/28502#issuecomment-510347823
libuv/libuv#2370https://github.com/libuv/libuv/issues/2370
https://github.com/jasnell
jasnellhttps://github.com/jasnell
on Jan 22, 2025https://github.com/nodejs/node/issues/28502#issuecomment-2608140601
https://github.com/soreavis
soreavishttps://github.com/soreavis
on Jul 15, 2026https://github.com/nodejs/node/issues/28502#issuecomment-4981396127
@jasnellhttps://github.com/jasnell
libuv/libuv#2370https://github.com/libuv/libuv/issues/2370
nodejs-github-bothttps://github.com/nodejs-github-bot
on Aug 28, 2026https://github.com/nodejs/node/issues/28502#event-30179321660
doc: clarify signal listener behaviorhttps://github.com/nodejs/node/commit/36a450287e2a15fb66385aa266ec4135a1e345e2
36a4502https://github.com/nodejs/node/commit/36a450287e2a15fb66385aa266ec4135a1e345e2
nodejs-github-bothttps://github.com/nodejs-github-bot
completedhttps://github.com/nodejs/node/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#65243https://github.com/nodejs/node/pull/65243
on Aug 28, 2026https://github.com/nodejs/node/issues/28502#event-30179321661
aduh95https://github.com/aduh95
on Aug 29, 2026https://github.com/nodejs/node/issues/28502#event-30208027558
doc: clarify signal listener behaviorhttps://github.com/nodejs/node/commit/f4c8d3a850bcdf12571dff3859393304cc01b1a8
f4c8d3ahttps://github.com/nodejs/node/commit/f4c8d3a850bcdf12571dff3859393304cc01b1a8
doc: clarify signal listener behaviorhttps://github.com/nodejs/node/commit/c98bb5210dfddc59dda2b48c1747e29812cd0afd
c98bb52https://github.com/nodejs/node/commit/c98bb5210dfddc59dda2b48c1747e29812cd0afd
doc: clarify signal listener behaviorhttps://github.com/nodejs/node/commit/00f607d149301476f55726901c3b27813eda9333
00f607dhttps://github.com/nodejs/node/commit/00f607d149301476f55726901c3b27813eda9333
doc: clarify signal listener behaviorhttps://github.com/nodejs/node/commit/f07c6acd8b9b1d72c3f4a6d4ec7b09a8ad86537f
f07c6achttps://github.com/nodejs/node/commit/f07c6acd8b9b1d72c3f4a6d4ec7b09a8ad86537f
Sign up for freehttps://github.com/signup?return_to=https://github.com/nodejs/node/issues/28502
Sign in to commenthttps://github.com/login?return_to=https://github.com/nodejs/node/issues/28502
confirmed-bugIssues and PRs for confirmed bugs.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22confirmed-bug%22
processIssues and PRs related to the process subsystem.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22process%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.