Skip to content

Revert "Handle failure of lseek in fflush" #23644

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 10, 2025
Merged

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Feb 10, 2025

Reverts #23624

This turned out to be a fix for something that is undefined behaviour.

@sbc100 sbc100 requested a review from kripken February 10, 2025 21:29
@hoodmane
Copy link
Collaborator

What specifically is undefined behavior?

@kripken
Copy link
Member

kripken commented Feb 10, 2025

@hoodmane fflush on an input stream like stdin is UB, it turns out.

@sbc100 sbc100 merged commit 918c299 into main Feb 10, 2025
29 of 31 checks passed
@sbc100 sbc100 deleted the revert-23624-fix_fflush branch February 10, 2025 23:08
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.

3 participants