summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--example.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/example.lua b/example.lua
index 91ce5ff..db9973a 100644
--- a/example.lua
+++ b/example.lua
@@ -1,10 +1,8 @@
-privsep = require("privsep")
+mymod = require("privsep").wrap("mymod", "dummy session token")
posix = require("posix")
-mymod = privsep.wrap("mymod", "mysessionid")
-
print(mymod.myfunc("foo", false))
print("posix.getpid:", posix.getpid().pid)