Title: stream_select(): Interrupted system call · Issue #301 · reactphp/reactphp · GitHub
Open Graph Title: stream_select(): Interrupted system call · Issue #301 · reactphp/reactphp
X Title: stream_select(): Interrupted system call · Issue #301 · reactphp/reactphp
Description: Hi there, I want to handle the SIGINT signal (CTRL+C) while running a StreamSelectLoop. Unfortunately it throws a PHP Warning when the signal is handling: PHP Warning: stream_select(): unable to select [4]: Interrupted system call (max_f...
Open Graph Description: Hi there, I want to handle the SIGINT signal (CTRL+C) while running a StreamSelectLoop. Unfortunately it throws a PHP Warning when the signal is handling: PHP Warning: stream_select(): unable to se...
X Description: Hi there, I want to handle the SIGINT signal (CTRL+C) while running a StreamSelectLoop. Unfortunately it throws a PHP Warning when the signal is handling: PHP Warning: stream_select(): unable to se...
Opengraph URL: https://github.com/reactphp/reactphp/issues/301
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"stream_select(): Interrupted system call","articleBody":"Hi there,\n\nI want to handle the SIGINT signal (CTRL+C) while running a StreamSelectLoop. Unfortunately it throws a PHP Warning when the signal is handling:\n\n```\nPHP Warning: stream_select(): unable to select [4]: Interrupted system call \n(max_fd=3) in vendor/react/event-loop/StreamSelectLoop.php on line 255\n```\n\nusing this:\n\n``` php\ndeclare(ticks = 1);\n\npcntl_signal(SIGINT, function($signo) {\n switch ($signo) {\n case SIGINT:\n exit;\n break;\n }\n});\n\n$loop = new StreamSelectLoop();\n\n$server = new \\React\\Socket\\Server($loop);\n$server->listen(123);\n\n$loop->run();\n```\n\nI think its because of the declare(ticks = 1); usage. Any way to resolve the problem?\n\nThank you\nMarkus\n","author":{"url":"https://github.com/mathielen","@type":"Person","name":"mathielen"},"datePublished":"2014-05-05T10:27:57Z","url":"https://github.com/reactphp/reactphp/issues/301"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:42204186-c36c-89d0-5b18-61cdf146a5ce |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 82DA:237E30:329A2D:44ED09:6B006B6A |
| html-safe-nonce | ba5360be417c034a609712ceb0324b4abc2fac0cace58e9402f7d54aa08dee8f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MkRBOjIzN0UzMDozMjlBMkQ6NDRFRDA5OjZCMDA2QjZBIiwidmlzaXRvcl9pZCI6IjYzNzczMzMzODc1NDc0MDUxNjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ed74faf53103c4321058b6dcf77a9c51ec022fb361f07da7bf5a0f40ead5794e |
| hovercard-subject-tag | issue:32799567 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/reactphp/reactphp/301/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5adfd6922bb691f7b82f599e008b228ac0766bca0e1f85ddfe0f8aeb9f9f1e8f/reactphp/reactphp/issues/301 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5adfd6922bb691f7b82f599e008b228ac0766bca0e1f85ddfe0f8aeb9f9f1e8f/reactphp/reactphp/issues/301 |
| og:image:alt | Hi there, I want to handle the SIGINT signal (CTRL+C) while running a StreamSelectLoop. Unfortunately it throws a PHP Warning when the signal is handling: PHP Warning: stream_select(): unable to se... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mathielen |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6527e91c60c0b29d16606ff32ac5df8ecdc37a2a62205ea057a14d7762c870fa |
| turbo-cache-control | no-preview |
| go-import | github.com/reactphp/reactphp git https://github.com/reactphp/reactphp.git |
| octolytics-dimension-user_id | 1696866 |
| octolytics-dimension-user_login | reactphp |
| octolytics-dimension-repository_id | 4287921 |
| octolytics-dimension-repository_nwo | reactphp/reactphp |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 4287921 |
| octolytics-dimension-repository_network_root_nwo | reactphp/reactphp |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 46f1cd2ae3cd8ae1a81019b5d619742e76f13bbd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width