Skip to content

tee: freeze pipe size - #15711

Merged
sylvestre merged 1 commit into
uutils:mainfrom
oech3:tee-2ndsize
Oct 24, 2026
Merged

sylvestre merged 1 commit into
uutils:mainfrom
oech3:tee-2ndsize

Conversation

@oech3

@oech3 oech3 commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Closes #15709 .
It is difficult to add test since it need to change system config.

(Other utils using unbuffered splice I/O do not need similar change.)

@oech3
oech3 marked this pull request as ready for review October 24, 2026 04:10
@oech3 oech3 changed the title tee :freeze pipe size tee: freeze pipe size Oct 24, 2026
Comment thread src/uu/tee/src/tee.rs
let _ = fcntl_setpipe_size(&self.writers[0], MAX_ROOTLESS_PIPE_SIZE); // stdout
}
use uucore::pipes::MAX_ROOTLESS_PIPE_SIZE;
// improve throughput when stdout is pipe, but no needed to be same size with broker.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

"no needed" -> "no need", and the improve throughput part is enough

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.

This PR was merged. But I'm planning to improve comments for all utils using splice.

@sylvestre
sylvestre merged commit 366c18c into uutils:main Oct 24, 2026
101 of 102 checks passed
@sylvestre

Copy link
Copy Markdown
Contributor

Thanks for your PR

@oech3
oech3 deleted the tee-2ndsize branch October 24, 2026 15:12
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.

tee: panics "2nd pipe should have enough spare" when the user crosses fs.pipe-user-pages-soft between its two pipe opens

2 participants