mirror of
https://github.com/NixOS/nix
synced 2025-06-27 08:31:16 +02:00
hoist vector out of loop just in case
This commit is contained in:
parent
c89a3d5368
commit
6b9a03f5d8
1 changed files with 1 additions and 1 deletions
|
@ -4154,9 +4154,9 @@ void Worker::waitForInput()
|
|||
assert(goal);
|
||||
|
||||
set<int> fds2(j->fds);
|
||||
std::vector<unsigned char> buffer(4096);
|
||||
for (auto & k : fds2) {
|
||||
if (FD_ISSET(k, &fds)) {
|
||||
std::vector<unsigned char> buffer(4096);
|
||||
ssize_t rd = read(k, buffer.data(), buffer.size());
|
||||
if (rd == -1) {
|
||||
if (errno != EINTR)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue