Skip to content

Commit

Permalink
Revert "core.shm: $SNABB_SHM_ROOT overrides /var/run/snabb"
Browse files Browse the repository at this point in the history
This had been intended as a mechanism for preserving the shm state
(including timeline) by storing it somewhere more specific than
/var/run/snabb. However, this is not effective now that Snabb
processes are automatically removing their state on termination. So a
new mechanism must be found.

This reverts commit 9746f24.
  • Loading branch information
lukego committed Jul 26, 2016
1 parent aef7104 commit be86d8f
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 = os.getenv("SNABB_SHM_ROOT") or "/var/run/snabb"
root = "/var/run/snabb"
path = ""

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

0 comments on commit be86d8f

Please sign in to comment.