From 1a06e70761a42bcb555fc64b601799ebc96327cb Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 13 Dec 2012 22:26:31 +0100 Subject: tiny refactoring of the example --- example.lua | 4 +--- 1 file changed, 1 insertion(+), 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) -- cgit v1.2.3