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
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/commits/:range(.:format) |
| route-controller | pull_requests |
| route-action | commits |
| fetch-nonce | v2:483cf61b-398c-3dd3-fe33-b1c9074cd960 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D234:1C033E:E40084:13E9981:69970C0E |
| html-safe-nonce | ae7ee1213f700aecb81814cbb105a289c6d44277faa49e3798039d65aab8b029 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMjM0OjFDMDMzRTpFNDAwODQ6MTNFOTk4MTo2OTk3MEMwRSIsInZpc2l0b3JfaWQiOiI4ODM4MDkyMzg4MTgwNjI2NDQ2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 2ecc8c0a468e3975151f6d4723877a3d6ad4dd9745886f7a9ea37a0496203578 |
| hovercard-subject-tag | pull_request:69259286 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/nodejs/node/pull/6635/commits/6a93ab11a98cbc96f2e962ed339a682daa9c2bd1 |
| twitter:image | https://avatars.githubusercontent.com/u/899444?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/899444?s=400&v=4 |
| og:image:alt | 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 ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5513290f8d09a9ed78de519ab8316ed23b2b0ddd5e91d2420df56691d00827e8 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c063d3d8462b0824204ccee50b071516c46f8681 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width