blob: 60c1acbc3ba089a8682c00bc6a27a717acb8c345 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
-- See LICENSE file for copyright and license details.
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")
|