-- See LICENSE file for copyright and license details. local l = require "luxio" s = l.newsigset() l.sigemptyset(s) l.sigaddset(s, l.SIGUSR1) l.sigprocmask(l.SIG_BLOCK, s) l.raise(l.SIGUSR1) pending = l.sigpending() present, errno = l.sigismember(pending, l.SIGUSR1) if present == 1 then print("PASS") else print("FAIL") end