Skip to content

Add dryyield#83

Open
pacujo wants to merge 2 commits intoWithSecureOpenSource:masterfrom
pacujo:add-dryyield
Open

Add dryyield#83
pacujo wants to merge 2 commits intoWithSecureOpenSource:masterfrom
pacujo:add-dryyield

Conversation

@pacujo
Copy link
Copy Markdown
Contributor

@pacujo pacujo commented Apr 28, 2026

Analogous to drystream, dryyield is a special yield whose receive method always returns with NULL and EAGAIN.

Newer gcc emits a warning when NUL-termination is truncated. The
explicit array size is redundant so it can simply be removed.
Comment thread include/dryyield.h Outdated
#endif

/*
* The dry stream's receive method always returns -1/EAGAIN (no data yet).
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This does not seem correct. The receive method does set errno=EAGAIN but returns NULL instead of -1.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Copy-paste error amended

Analogous to drystream, dryyield is a special yield whose receive
method always returns with NULL and EAGAIN.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants