diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-12-13 22:26:31 +0100 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-12-13 22:26:31 +0100 |
commit | 1a06e70761a42bcb555fc64b601799ebc96327cb (patch) | |
tree | 857e07822523355e064c57feed492dd923dd981b /example.lua | |
parent | 84a99cccd17d6a058e30a01605843cc88dff33a9 (diff) | |
download | privsep-1a06e70761a42bcb555fc64b601799ebc96327cb.tar.bz2 privsep-1a06e70761a42bcb555fc64b601799ebc96327cb.tar.xz |
tiny refactoring of the example
Diffstat (limited to 'example.lua')
-rw-r--r-- | example.lua | 4 |
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) |