René's URL Explorer Experiment


Title: vm,repl: (add ability to) break on sigint/ctrl+c by addaleax · Pull Request #6635 · nodejs/node · GitHub

Open Graph Title: vm,repl: (add ability to) break on sigint/ctrl+c by addaleax · Pull Request #6635 · nodejs/node

X Title: vm,repl: (add ability to) break on sigint/ctrl+c by addaleax · Pull Request #6635 · nodejs/node

Description: Checklist tests and code linting passes a test and/or benchmark is included documentation is changed or added the commit message follows commit guidelines Affected core subsystem(s) vm, repl Description of change vm: Adds the breakEvalOnSigint option to vm.runIn(This)Context. This uses a watchdog thread to wait for SIGINT and generally works just like the existing timeout option. Adds a method to the existing timer-based watchdog to check if it stopped regularly or by running into the timeout. This is used to tell a SIGINT abort from a timer-based one. Adds (internal) process._{start,stop}SigintWatchdog methods to start/stop the watchdog thread used by the above option manually. This will be used in the REPL to set up SIGINT handling before entering terminal raw mode, so that there is no time window in which Ctrl+C fully aborts the process. readline: Return the previous raw mode setting from the internal _setRawMode so that is easier to reset it to its original state later. repl: Use all that stuff to fix #6612. This probably does not work on Windows as-is. Current CI: https://ci.nodejs.org/job/node-test-commit/3222/

Open Graph Description: Checklist tests and code linting passes a test and/or benchmark is included documentation is changed or added the commit message follows commit guidelines Affected core subsystem(s) vm, repl ...

X Description: Checklist tests and code linting passes a test and/or benchmark is included documentation is changed or added the commit message follows commit guidelines Affected core subsystem(s) vm, repl ...

Opengraph URL: https://github.com/nodejs/node/pull/6635

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/commits/:range(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:483cf61b-398c-3dd3-fe33-b1c9074cd960
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD234:1C033E:E40084:13E9981:69970C0E
html-safe-nonceae7ee1213f700aecb81814cbb105a289c6d44277faa49e3798039d65aab8b029
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMjM0OjFDMDMzRTpFNDAwODQ6MTNFOTk4MTo2OTk3MEMwRSIsInZpc2l0b3JfaWQiOiI4ODM4MDkyMzg4MTgwNjI2NDQ2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac2ecc8c0a468e3975151f6d4723877a3d6ad4dd9745886f7a9ea37a0496203578
hovercard-subject-tagpull_request:69259286
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/nodejs/node/pull/6635/commits/6a93ab11a98cbc96f2e962ed339a682daa9c2bd1
twitter:imagehttps://avatars.githubusercontent.com/u/899444?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/899444?s=400&v=4
og:image:altChecklist tests and code linting passes a test and/or benchmark is included documentation is changed or added the commit message follows commit guidelines Affected core subsystem(s) vm, repl ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None5513290f8d09a9ed78de519ab8316ed23b2b0ddd5e91d2420df56691d00827e8
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasec063d3d8462b0824204ccee50b071516c46f8681
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/nodejs/node/pull/6635/commits/6a93ab11a98cbc96f2e962ed339a682daa9c2bd1#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fpull%2F6635%2Fcommits%2F6a93ab11a98cbc96f2e962ed339a682daa9c2bd1
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fpull%2F6635%2Fcommits%2F6a93ab11a98cbc96f2e962ed339a682daa9c2bd1
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Fcommits&source=header-repo&source_repo=nodejs%2Fnode
Reloadhttps://github.com/nodejs/node/pull/6635/commits/6a93ab11a98cbc96f2e962ed339a682daa9c2bd1
Reloadhttps://github.com/nodejs/node/pull/6635/commits/6a93ab11a98cbc96f2e962ed339a682daa9c2bd1
Reloadhttps://github.com/nodejs/node/pull/6635/commits/6a93ab11a98cbc96f2e962ed339a682daa9c2bd1
nodejs https://github.com/nodejs
nodehttps://github.com/nodejs/node
Please reload this pagehttps://github.com/nodejs/node/pull/6635/commits/6a93ab11a98cbc96f2e962ed339a682daa9c2bd1
Notifications https://github.com/login?return_to=%2Fnodejs%2Fnode
Fork 34.8k https://github.com/login?return_to=%2Fnodejs%2Fnode
Star 116k https://github.com/login?return_to=%2Fnodejs%2Fnode
Code https://github.com/nodejs/node
Issues 1.8k https://github.com/nodejs/node/issues
Pull requests 711 https://github.com/nodejs/node/pulls
Actions https://github.com/nodejs/node/actions
Projects 3 https://github.com/nodejs/node/projects
Security 0 https://github.com/nodejs/node/security
Insights https://github.com/nodejs/node/pulse
Code https://github.com/nodejs/node
Issues https://github.com/nodejs/node/issues
Pull requests https://github.com/nodejs/node/pulls
Actions https://github.com/nodejs/node/actions
Projects https://github.com/nodejs/node/projects
Security https://github.com/nodejs/node/security
Insights https://github.com/nodejs/node/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fnodejs%2Fnode%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fnodejs%2Fnode%2Fissues%2Fnew%2Fchoose
addaleaxhttps://github.com/addaleax
nodejs:masterhttps://github.com/nodejs/node/tree/master
addaleax:repl-break-on-siginthttps://github.com/addaleax/node/tree/repl-break-on-sigint
Conversation 30 https://github.com/nodejs/node/pull/6635
Commits 3 https://github.com/nodejs/node/pull/6635/commits
Checks 0 https://github.com/nodejs/node/pull/6635/checks
Files changed https://github.com/nodejs/node/pull/6635/files
Please reload this pagehttps://github.com/nodejs/node/pull/6635/commits/6a93ab11a98cbc96f2e962ed339a682daa9c2bd1
vm,repl: (add ability to) break on sigint/ctrl+c https://github.com/nodejs/node/pull/6635/commits/6a93ab11a98cbc96f2e962ed339a682daa9c2bd1#top
Show all changes 3 commits https://github.com/nodejs/node/pull/6635/files
0815b94 vm: add ability to break on sigint/ctrl+c addaleax May 8, 2016 https://github.com/nodejs/node/pull/6635/commits/0815b9401d087202cd64458b6906a5225929fc5d
dc57b9e readline: return old status from _setRawMode addaleax May 8, 2016 https://github.com/nodejs/node/pull/6635/commits/dc57b9e78fa0c64ce83c1e54a01e95fccb88e301
6a93ab1 repl: break on sigint/ctrl+c addaleax May 8, 2016 https://github.com/nodejs/node/pull/6635/commits/6a93ab11a98cbc96f2e962ed339a682daa9c2bd1
Clear filters https://github.com/nodejs/node/pull/6635/commits/6a93ab11a98cbc96f2e962ed339a682daa9c2bd1
Please reload this pagehttps://github.com/nodejs/node/pull/6635/commits/6a93ab11a98cbc96f2e962ed339a682daa9c2bd1
Please reload this pagehttps://github.com/nodejs/node/pull/6635/commits/6a93ab11a98cbc96f2e962ed339a682daa9c2bd1
repl.md https://github.com/nodejs/node/pull/6635/commits/6a93ab11a98cbc96f2e962ed339a682daa9c2bd1#diff-f91074d8cb772bd5c2dcd48c4421ca70f0d3bd0f7ea5bbd818bf57fda1202383
repl.js https://github.com/nodejs/node/pull/6635/commits/6a93ab11a98cbc96f2e962ed339a682daa9c2bd1#diff-9cd07c7ad9c46c7c8d814cbc516c17c695e3b27747c13e6afa7fba33a4d11bb0
repl.js https://github.com/nodejs/node/pull/6635/commits/6a93ab11a98cbc96f2e962ed339a682daa9c2bd1#diff-392b628f0a5eb047b1117351e6eedcefb8ec70a48933479e0e9bdc711a04f047
test-repl-sigint-nested-eval.js https://github.com/nodejs/node/pull/6635/commits/6a93ab11a98cbc96f2e962ed339a682daa9c2bd1#diff-d4c14993a6c4de5de523ef2277eb331c9cb6a1276784681803ad7f70ce8b1488
test-repl-sigint.js https://github.com/nodejs/node/pull/6635/commits/6a93ab11a98cbc96f2e962ed339a682daa9c2bd1#diff-301ab1b25138f2fcab5d168ad362eeb47f76149676f43230204524af863144ac
Prev https://github.com/nodejs/node/pull/6635/commits/dc57b9e78fa0c64ce83c1e54a01e95fccb88e301
#6612https://github.com/nodejs/node/issues/6612
#6635https://github.com/nodejs/node/pull/6635
Please reload this pagehttps://github.com/nodejs/node/pull/6635/commits/6a93ab11a98cbc96f2e962ed339a682daa9c2bd1
https://github.com/addaleax
addaleaxhttps://github.com/nodejs/node/commits?author=addaleax
doc/api/repl.mdhttps://github.com/nodejs/node/pull/6635/commits/6a93ab11a98cbc96f2e962ed339a682daa9c2bd1#diff-f91074d8cb772bd5c2dcd48c4421ca70f0d3bd0f7ea5bbd818bf57fda1202383
View file https://github.com/addaleax/node/blob/6a93ab11a98cbc96f2e962ed339a682daa9c2bd1/doc/api/repl.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/6635/commits/{{ revealButtonHref }}
https://github.com/nodejs/node/pull/6635/commits/6a93ab11a98cbc96f2e962ed339a682daa9c2bd1#diff-f91074d8cb772bd5c2dcd48c4421ca70f0d3bd0f7ea5bbd818bf57fda1202383
https://github.com/nodejs/node/pull/6635/commits/6a93ab11a98cbc96f2e962ed339a682daa9c2bd1#diff-f91074d8cb772bd5c2dcd48c4421ca70f0d3bd0f7ea5bbd818bf57fda1202383
lib/internal/repl.jshttps://github.com/nodejs/node/pull/6635/commits/6a93ab11a98cbc96f2e962ed339a682daa9c2bd1#diff-9cd07c7ad9c46c7c8d814cbc516c17c695e3b27747c13e6afa7fba33a4d11bb0
View file https://github.com/addaleax/node/blob/6a93ab11a98cbc96f2e962ed339a682daa9c2bd1/lib/internal/repl.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/6635/commits/{{ revealButtonHref }}
https://github.com/nodejs/node/pull/6635/commits/6a93ab11a98cbc96f2e962ed339a682daa9c2bd1#diff-9cd07c7ad9c46c7c8d814cbc516c17c695e3b27747c13e6afa7fba33a4d11bb0
https://github.com/nodejs/node/pull/6635/commits/6a93ab11a98cbc96f2e962ed339a682daa9c2bd1#diff-9cd07c7ad9c46c7c8d814cbc516c17c695e3b27747c13e6afa7fba33a4d11bb0
lib/repl.jshttps://github.com/nodejs/node/pull/6635/commits/6a93ab11a98cbc96f2e962ed339a682daa9c2bd1#diff-392b628f0a5eb047b1117351e6eedcefb8ec70a48933479e0e9bdc711a04f047
View file https://github.com/addaleax/node/blob/6a93ab11a98cbc96f2e962ed339a682daa9c2bd1/lib/repl.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/6635/commits/{{ revealButtonHref }}
https://github.com/nodejs/node/pull/6635/commits/6a93ab11a98cbc96f2e962ed339a682daa9c2bd1#diff-392b628f0a5eb047b1117351e6eedcefb8ec70a48933479e0e9bdc711a04f047
https://github.com/nodejs/node/pull/6635/commits/6a93ab11a98cbc96f2e962ed339a682daa9c2bd1#diff-392b628f0a5eb047b1117351e6eedcefb8ec70a48933479e0e9bdc711a04f047
https://github.com/nodejs/node/pull/6635/commits/6a93ab11a98cbc96f2e962ed339a682daa9c2bd1#diff-392b628f0a5eb047b1117351e6eedcefb8ec70a48933479e0e9bdc711a04f047
https://github.com/nodejs/node/pull/6635/commits/6a93ab11a98cbc96f2e962ed339a682daa9c2bd1#diff-392b628f0a5eb047b1117351e6eedcefb8ec70a48933479e0e9bdc711a04f047
https://github.com/nodejs/node/pull/6635/commits/6a93ab11a98cbc96f2e962ed339a682daa9c2bd1#diff-392b628f0a5eb047b1117351e6eedcefb8ec70a48933479e0e9bdc711a04f047
https://github.com/nodejs/node/pull/6635/commits/6a93ab11a98cbc96f2e962ed339a682daa9c2bd1#diff-392b628f0a5eb047b1117351e6eedcefb8ec70a48933479e0e9bdc711a04f047
https://github.com/nodejs/node/pull/6635/commits/6a93ab11a98cbc96f2e962ed339a682daa9c2bd1#diff-392b628f0a5eb047b1117351e6eedcefb8ec70a48933479e0e9bdc711a04f047
https://github.com/nodejs/node/pull/6635/commits/6a93ab11a98cbc96f2e962ed339a682daa9c2bd1#diff-392b628f0a5eb047b1117351e6eedcefb8ec70a48933479e0e9bdc711a04f047
test/parallel/test-repl-sigint-nested-eval.jshttps://github.com/nodejs/node/pull/6635/commits/6a93ab11a98cbc96f2e962ed339a682daa9c2bd1#diff-d4c14993a6c4de5de523ef2277eb331c9cb6a1276784681803ad7f70ce8b1488
View file https://github.com/addaleax/node/blob/6a93ab11a98cbc96f2e962ed339a682daa9c2bd1/test/parallel/test-repl-sigint-nested-eval.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/6635/commits/{{ revealButtonHref }}
test/parallel/test-repl-sigint.jshttps://github.com/nodejs/node/pull/6635/commits/6a93ab11a98cbc96f2e962ed339a682daa9c2bd1#diff-301ab1b25138f2fcab5d168ad362eeb47f76149676f43230204524af863144ac
View file https://github.com/addaleax/node/blob/6a93ab11a98cbc96f2e962ed339a682daa9c2bd1/test/parallel/test-repl-sigint.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/6635/commits/{{ revealButtonHref }}
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.