diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-02-01 09:38:11 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-02-01 12:44:58 -0500 |
commit | 76ffc8d30cb1160d55d855d8ac630a2b9075fbcf (patch) | |
tree | ab85ecbbc836be7bedf75774eebdca584953bce6 /src/ioq.c | |
parent | bb060c513214aec07993946764180c17106b4344 (diff) | |
download | bfs-76ffc8d30cb1160d55d855d8ac630a2b9075fbcf.tar.xz |
bftw: Allow forcing bfs_dir allocation from the main thread
When sorting, we can be forced to pop an unopened directory. If enough
other directories are already open, that can lead to ENOMEM when we try
to open it synchronously. To avoid this, force allocations from the
main thread to be attempted even if they would go over the limit.
Also, fix the accounting in bftw_allocdir() if allocation fails.
Diffstat (limited to 'src/ioq.c')
0 files changed, 0 insertions, 0 deletions