Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nix
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 9b1bdf2db879
Choose a base ref
...
head repository: NixOS/nix
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: cc7b4386b168
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Aug 19, 2018

  1. nix run: Restore CPU affinity

    Fixes #2359.
    edolstra committed Aug 19, 2018
    1
    Copy the full SHA
    cc7b438 View commit details
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/nix/run.cc
3 changes: 3 additions & 0 deletions src/nix/run.cc
Original file line number Diff line number Diff line change
@@ -7,6 +7,7 @@
#include "finally.hh"
#include "fs-accessor.hh"
#include "progress-bar.hh"
#include "affinity.hh"

#if __linux__
#include <sys/mount.h>
@@ -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