From cc7b4386b16885a22ccabb019381539fecb00230 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sun, 19 Aug 2018 12:05:08 +0200 Subject: [PATCH] nix run: Restore CPU affinity Fixes #2359. --- src/nix/run.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/nix/run.cc b/src/nix/run.cc index 65ced3475..35b763345 100644 --- a/src/nix/run.cc +++ b/src/nix/run.cc @@ -7,6 +7,7 @@ #include "finally.hh" #include "fs-accessor.hh" #include "progress-bar.hh" +#include "affinity.hh" #if __linux__ #include @@ -154,6 +155,8 @@ struct CmdRun : InstallablesCommand restoreSignals(); + restoreAffinity(); + /* If this is a diverted store (i.e. its "logical" location (typically /nix/store) differs from its "physical" location (e.g. /home/eelco/nix/store), then run the command in a