summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-12-13 22:26:31 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2012-12-13 22:26:31 +0100
commit1a06e70761a42bcb555fc64b601799ebc96327cb (patch)
tree857e07822523355e064c57feed492dd923dd981b
parent84a99cccd17d6a058e30a01605843cc88dff33a9 (diff)
downloadprivsep-1a06e70761a42bcb555fc64b601799ebc96327cb.tar.bz2
privsep-1a06e70761a42bcb555fc64b601799ebc96327cb.tar.xz
tiny refactoring of the example
-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)