Psycopg 3.2.11 (unreleased)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
+- Fix spurious readiness flags in some of the wait functions (:ticket:`#1141`).
- Fix bad data on error in binary copy (:ticket:`#1147`).
- Don't raise warning, and don't leak resources, if a builtin function is used
as JSON dumper/loader function (:ticket:`#1165`).
rv = 0; /* success, maybe with timeout */
if (select_rv >= 0) {
- if (input_fd.events & POLLIN) { rv |= SELECT_EV_READ; }
- if (input_fd.events & POLLOUT) { rv |= SELECT_EV_WRITE; }
+ if (input_fd.revents & POLLIN) { rv |= SELECT_EV_READ; }
+ if (input_fd.revents & POLLOUT) { rv |= SELECT_EV_WRITE; }
}
#else