Skip to content

Commit

Permalink
core.shm: $SNABB_SHM_ROOT overrides /var/run/snabb
Browse files Browse the repository at this point in the history
  • Loading branch information
lukego committed May 10, 2016
1 parent 9697486 commit 9746f24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/shm.lua
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ local S = require("syscall")
local const = require("syscall.linux.constants")

-- Root directory where the object tree is created.
root = "/var/run/snabb"
root = os.getenv("SNABB_SHM_ROOT") or "/var/run/snabb"
path = ""

-- Table (address->size) of all currently mapped objects.
Expand Down

0 comments on commit 9746f24

Please sign in to comment.