Skip to content

tool_cb_rea: make waitfd() return void#21127

Closed
bagder wants to merge 1 commit intomasterfrom
bagder/waitfd
Closed

tool_cb_rea: make waitfd() return void#21127
bagder wants to merge 1 commit intomasterfrom
bagder/waitfd

Conversation

@bagder
Copy link
Copy Markdown
Member

@bagder bagder commented Mar 27, 2026

Nothing cared about the return code. Simplified.

Nothing cared about the return code. Simplified.
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR simplifies src/tool_cb_rea.c by changing the internal waitfd() helper from returning a bool to returning void, aligning the function’s signature with how it is actually used (call sites do not check a return value).

Changes:

  • Change waitfd() return type from bool to void.
  • Remove now-unused return-value logic around poll() / select() and make the select() path a no-op when fd >= FD_SETSIZE.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@testclutch

This comment was marked as outdated.

@bagder bagder marked this pull request as ready for review March 28, 2026 22:00
@bagder bagder closed this in 8f3f470 Mar 28, 2026
@bagder bagder deleted the bagder/waitfd branch March 28, 2026 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

4 participants