diff options
author | eldritch horrors <pennae@lix.systems> | 2024-03-04 06:28:55 +0100 |
---|---|---|
committer | eldritch horrors <pennae@lix.systems> | 2024-03-04 07:11:25 +0100 |
commit | 94bf5a8018e0850964084947c1379ffe3fa2144d (patch) | |
tree | 3cab427f358a19955213b5d5848abeb3ff2ee479 /src/nix/run.hh | |
parent | 8505f963a1990566202b0fe60300f89c752ace86 (diff) |
Merge pull request #9494 from sellout/nix-run-execv
Don’t use `execvp` when we know the path
(cherry picked from commit dfa219d03b2277e61dde1c1ddddddff7411ef112)
Change-Id: I2226340cebbe935e1f2fe10207daba69683c8cb3
Diffstat (limited to 'src/nix/run.hh')
-rw-r--r-- | src/nix/run.hh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nix/run.hh b/src/nix/run.hh index 97ddef19b..a55917b06 100644 --- a/src/nix/run.hh +++ b/src/nix/run.hh @@ -5,7 +5,13 @@ namespace nix { +enum struct UseSearchPath { + Use, + DontUse +}; + void runProgramInStore(ref<Store> store, + UseSearchPath useSearchPath, const std::string & program, const Strings & args, std::optional<std::string_view> system = std::nullopt); |