1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
ps = require("privsep") c = ps.connect() mymod = c:wrap("mymod") if mymod == nil then print("mymod is nil") end pos = require("posix") print(mymod.myfunc("arg1", true)) for i = 1, 1000 do mymod.myfunc("foo", false) end c:close()