mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-07 09:58:54 +00:00
bug: do not block hashing file read on posix (#4356)
This commit is contained in:
parent
d10dbb3caa
commit
81751e5526
@ -97,6 +97,7 @@ MultiHashes hashMultiFromFile(int mask, const std::string& path) {
|
||||
{HASH_TYPE_SHA256, std::make_shared<Hash>(HASH_TYPE_SHA256)},
|
||||
};
|
||||
|
||||
auto blocking = isPlatform(PlatformType::TYPE_WINDOWS);
|
||||
auto s = readFile(path,
|
||||
0,
|
||||
kHashChunkSize,
|
||||
@ -109,7 +110,7 @@ MultiHashes hashMultiFromFile(int mask, const std::string& path) {
|
||||
}
|
||||
}
|
||||
}),
|
||||
true);
|
||||
blocking);
|
||||
|
||||
MultiHashes mh = {};
|
||||
if (!s.ok()) {
|
||||
|
Loading…
Reference in New Issue
Block a user