Skip to content

tee: avoid unnecessary pipe & 2x splices for 1 input - #15940

Closed
oech3 wants to merge 1 commit into
uutils:mainfrom
oech3:tee-unnecessary-fd
Closed

oech3 wants to merge 1 commit into
uutils:mainfrom
oech3:tee-unnecessary-fd

Conversation

@oech3

@oech3 oech3 commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

I was previously considering that this is not needed, but 1 input sometimes happen e.g echo small_input | sudo tee.
We should avoid opening unnecessary fd and making syscalls 2x in the case.

Separated from #15854 .

@oech3
oech3 force-pushed the tee-unnecessary-fd branch from 61f9122 to e184bb5 Compare October 29, 2026 06:54
@oech3 oech3 closed this Nov 5, 2026
@oech3
oech3 deleted the tee-unnecessary-fd branch November 5, 2026 11:18
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.

1 participant