summaryrefslogtreecommitdiff
path: root/tests/test-setsid.lua
blob: 0c4c74a0c3b397cd94ee75473b4a851cd588fd05 (plain)
1
2
3
4
5
6
7
8
-- See LICENSE file for copyright and license details.
local l = require "luxio"

local child = l.fork()

if child == 0 then
   print("session ID: " .. l.setsid())
end