Skip to content

uucore: catch closed stdio by rustix::io - #16929

Open
oech3 wants to merge 1 commit into
uutils:mainfrom
oech3:rawiobadf
Open

oech3 wants to merge 1 commit into
uutils:mainfrom
oech3:rawiobadf

Conversation

@oech3

@oech3 oech3 commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

uucore::io::signals::std*_was_closed() reports EBADF "before" actual read/write which is not compatible with GNU.
Catch them as actual read/write errors.

Split #16299 .
The pipe based solution to avoid crashing std is pending.

@codspeed

codspeed Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

1 warning

⚠️ 9 benchmarks are dominated by system calls

System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.

Learn more about system calls

See affected benchmarks

✅ 9 untouched benchmarks
⏩ 480 skipped benchmarks1


Comparing oech3:rawiobadf (a791a88) with main (0c4b68f)

Open in CodSpeed

Footnotes

  1. 480 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@xtqqczze

Copy link
Copy Markdown
Collaborator

needs to be rebased for codspeed (#14965)

Comment thread src/uucore/src/lib/features/signals.rs Resolved
Comment thread src/uucore/src/lib/features/signals.rs Resolved
Comment thread src/uucore/src/lib/features/signals.rs Resolved
@oech3
oech3 force-pushed the rawiobadf branch 4 times, most recently from ffba4c2 to 69e41e6 Compare December 1, 2026 09:46
Comment thread src/uucore/src/lib/features/signals.rs Resolved

This branch has not been deployed

No deployments
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