diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-12-12 12:01:16 +0100 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-12-12 12:01:16 +0100 |
commit | 9b0cffd1c46ebc77430d19fa173a848450512f6a (patch) | |
tree | 2ec658fe2f1429cd1dfb9547f271c0f5bbbc3a6d /example.lua | |
parent | f55179f734b5c3c48e116e21ebbe15a7c5870c2f (diff) | |
download | privsep-9b0cffd1c46ebc77430d19fa173a848450512f6a.tar.bz2 privsep-9b0cffd1c46ebc77430d19fa173a848450512f6a.tar.xz |
add getpid example to show that they are running in different processes
Diffstat (limited to 'example.lua')
-rw-r--r-- | example.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/example.lua b/example.lua index 324df49..91ce5ff 100644 --- a/example.lua +++ b/example.lua @@ -1,9 +1,14 @@ + privsep = require("privsep") +posix = require("posix") mymod = privsep.wrap("mymod", "mysessionid") print(mymod.myfunc("foo", false)) +print("posix.getpid:", posix.getpid().pid) +print("mymod.getpid:", mymod.getpid().pid) + |