[php-src] PR #22326: main/poll: Record wait() error on every backend
| From: | iliaal | Date: | Mon, 15 Jun 2026 23:31:06 +0000 |
| Subject: | [php-src] PR #22326: main/poll: Record wait() error on every backend | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-36450@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/22326
Author: iliaal
php_poll_wait() reported a stale error code when a backend's wait syscall failed
without recording one. epoll, poll and kqueue returned -1 without setting it, so record it from
errno and php_poll_get_error() then reflects the real failure. eventport and wsapoll
already did this, the latter from WSAGetLastError(). Split out of #22316 on review.