diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-03-14T12·27+0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-03-14T12·30+0100 |
commit | a3f37d87eabcfb5dc581abcfa46e5e7d387dfa8c (patch) | |
tree | 926932c125326ce08609e9cce338051ec256ffe5 /src/libstore/store-api.hh | |
parent | 115e2c8c67a949d3fa78fda450186803cd713958 (diff) |
findRuntimeRoots: Simplify/fix handling of /proc files
Scanning of /proc/<pid>/{exe,cwd} was broken because '{memory:' was prepended twice. Also, get rid of the whole '{memory:...}' thing because it's unnecessary, we can just list the file in /proc directly.
Diffstat (limited to 'src/libstore/store-api.hh')
-rw-r--r-- | src/libstore/store-api.hh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstore/store-api.hh b/src/libstore/store-api.hh index b4e5f5511599..bb16659765f4 100644 --- a/src/libstore/store-api.hh +++ b/src/libstore/store-api.hh @@ -11,6 +11,7 @@ #include <atomic> #include <limits> #include <map> +#include <unordered_set> #include <memory> #include <string> @@ -47,7 +48,7 @@ const size_t storePathHashLen = 32; // i.e. 160 bits const uint32_t exportMagic = 0x4558494e; -typedef std::map<Path, std::set<std::string>> Roots; +typedef std::unordered_map<Path, std::unordered_set<std::string>> Roots; struct GCOptions |