forked from lix-project/lix
store: delete obsolete lsof-disabling code
SinceIfa0adda7984e
, we don't use this code anymore on macOS, so we have no reason to have a knob to disable it anymore. Change-Id:Ie29a8a8978d9aefd4551895f4f9b3cc0827496df
This commit is contained in:
parent
d92712673b
commit
d85309f7ca
|
@ -433,9 +433,6 @@ I grepped `src/` for `get[eE]nv\("` to find the mentions in Lix code.
|
||||||
- `NIX_PROFILE` - Selects which profile `nix-env` will operate on. Documented elsewhere.
|
- `NIX_PROFILE` - Selects which profile `nix-env` will operate on. Documented elsewhere.
|
||||||
- `NIX_SSHOPTS` - Options passed to `ssh(1)` when using a ssh remote store.
|
- `NIX_SSHOPTS` - Options passed to `ssh(1)` when using a ssh remote store.
|
||||||
Incorrectly documented on `nix-copy-closure` which is *surely* not the only place they are used??
|
Incorrectly documented on `nix-copy-closure` which is *surely* not the only place they are used??
|
||||||
- `_NIX_TEST_NO_LSOF` - Used on non-Linux, non-macOS platforms to disable using `lsof` when finding gc roots.
|
|
||||||
|
|
||||||
Since https://git.lix.systems/lix-project/lix/issues/156 was fixed, this should probably just be removed as it was a bad workaround for a macOS issue.
|
|
||||||
- `_NIX_TEST_GC_SYNC_1` - Path to a pipe that is used to block the GC briefly to validate invariants from the test suite.
|
- `_NIX_TEST_GC_SYNC_1` - Path to a pipe that is used to block the GC briefly to validate invariants from the test suite.
|
||||||
- `_NIX_TEST_GC_SYNC_2` - Path to a pipe that is used to block the GC briefly to validate invariants from the test suite.
|
- `_NIX_TEST_GC_SYNC_2` - Path to a pipe that is used to block the GC briefly to validate invariants from the test suite.
|
||||||
- `_NIX_TEST_FREE_SPACE_FILE` - Path to a file containing a decimal number with the free space that the GC is to believe it has.
|
- `_NIX_TEST_FREE_SPACE_FILE` - Path to a file containing a decimal number with the free space that the GC is to believe it has.
|
||||||
|
|
|
@ -321,10 +321,9 @@ Roots LocalStore::findRoots(bool censor)
|
||||||
|
|
||||||
void LocalStore::findPlatformRoots(UncheckedRoots & unchecked)
|
void LocalStore::findPlatformRoots(UncheckedRoots & unchecked)
|
||||||
{
|
{
|
||||||
// lsof is really slow on OS X. This actually causes the gc-concurrent.sh test to fail.
|
// N.B. This is (read: undertested!) fallback code only used for
|
||||||
// See: https://github.com/NixOS/nix/issues/3011
|
// non-Darwin, non-Linux platforms. Both major platforms have
|
||||||
// Because of this we disable lsof when running the tests.
|
// platform-specific code in src/libstore/platform/
|
||||||
if (getEnv("_NIX_TEST_NO_LSOF") != "1") {
|
|
||||||
try {
|
try {
|
||||||
std::regex lsofRegex(R"(^n(/.*)$)");
|
std::regex lsofRegex(R"(^n(/.*)$)");
|
||||||
auto lsofLines =
|
auto lsofLines =
|
||||||
|
@ -337,7 +336,6 @@ void LocalStore::findPlatformRoots(UncheckedRoots & unchecked)
|
||||||
} catch (ExecError & e) {
|
} catch (ExecError & e) {
|
||||||
/* lsof not installed, lsof failed */
|
/* lsof not installed, lsof failed */
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void LocalStore::findRuntimeRoots(Roots & roots, bool censor)
|
void LocalStore::findRuntimeRoots(Roots & roots, bool censor)
|
||||||
|
|
Loading…
Reference in a new issue