Skip to content

fix(sort): GNU sort-continue.sh test#9107

Merged
sylvestre merged 9 commits intouutils:mainfrom
mattsu2020:sort_-compatibility
Dec 20, 2025
Merged

fix(sort): GNU sort-continue.sh test#9107
sylvestre merged 9 commits intouutils:mainfrom
mattsu2020:sort_-compatibility

Conversation

@mattsu2020
Copy link
Contributor

Adjust fd_soft_limit helper to expose the soft RLIMIT for reuse across the codebase.
Respect the soft limit when determining merge batch sizes so the external merge never exceeds the available file descriptors.
Fallback to a useful error message when retrieving the limit fails while parsing --batch-size.
Tests:

cargo build -p uu_sort
ulimit -n 7; ./target/debug/sort -n -m __test.* … (GNU sort-continue scenario)
ulimit -n 7; ./target/debug/sort -n -m __test.* - …

Loading
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