diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-02-01 16:14:19 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-02-01 16:33:18 -0500 |
commit | c4334184502c25a41b5cab060681229b2b570c0a (patch) | |
tree | 3db277045e38a35a375f41900cb1dbffeed1b39a /tests/posix/exec_ulimit.sh | |
parent | f8b22f20147d872aef9fa1037139c39e4dd0e687 (diff) | |
download | bfs-c4334184502c25a41b5cab060681229b2b570c0a.tar.xz |
tests: Don't clobber inherited FDs
Rather than attempting to close any unexpected FDs, just count them and
adjust our ulimit -n calls to account for them.
Diffstat (limited to 'tests/posix/exec_ulimit.sh')
-rw-r--r-- | tests/posix/exec_ulimit.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/posix/exec_ulimit.sh b/tests/posix/exec_ulimit.sh index 8ac8ff1..655fbec 100644 --- a/tests/posix/exec_ulimit.sh +++ b/tests/posix/exec_ulimit.sh @@ -1,2 +1,2 @@ -ulimit -Sn 16 +ulimit -Sn 64 bfs_diff deep -type f -exec bash -c 'printf "%d %s\n" $(ulimit -Sn) "${1:0:6}/.../${1##*/}"' bash {} \; |