summaryrefslogtreecommitdiff
path: root/tests/test-sigsuspend.lua
blob: 5c85e7720e66df5570767d325b1f9ed31664b4bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
local l = require "luxio"

function handler()
	return
end

l.sigaction(l.SIGINT, {["sa_handler"] = handler})

s = l.newsigset()
l.sigfillset(s)
l.sigdelset(s, l.SIGINT)
print("Press CTRL-C...")
l.sigsuspend(s)

print("PASS")