Skip to content

Commit 22e2964

Browse files
committed
poll: fix error overwriting
1 parent dd4c021 commit 22e2964

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

main/poll/poll_core.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,6 @@ PHPAPI zend_result php_poll_add(php_poll_ctx *ctx, int fd, uint32_t events, void
215215
return SUCCESS;
216216
}
217217

218-
php_poll_set_current_errno_error(ctx);
219218
return FAILURE;
220219
}
221220

@@ -232,7 +231,6 @@ PHPAPI zend_result php_poll_modify(php_poll_ctx *ctx, int fd, uint32_t events, v
232231
return SUCCESS;
233232
}
234233

235-
php_poll_set_current_errno_error(ctx);
236234
return FAILURE;
237235
}
238236

@@ -249,7 +247,6 @@ PHPAPI zend_result php_poll_remove(php_poll_ctx *ctx, int fd)
249247
return SUCCESS;
250248
}
251249

252-
php_poll_set_current_errno_error(ctx);
253250
return FAILURE;
254251
}
255252

@@ -264,10 +261,6 @@ PHPAPI int php_poll_wait(php_poll_ctx *ctx, php_poll_event *events, int max_even
264261
/* Delegate to backend - it handles everything including ET simulation if needed */
265262
int nfds = ctx->backend_ops->wait(ctx, events, max_events, timeout);
266263

267-
if (UNEXPECTED(nfds < 0)) {
268-
php_poll_set_current_errno_error(ctx);
269-
}
270-
271264
return nfds;
272265
}
273266

0 commit comments

Comments
 (0)