diff options
author | Richard Ipsum <richardipsum@vx21.xyz> | 2019-10-04 23:28:49 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2019-10-06 09:22:07 +0100 |
commit | 4c42af5fd9b2bb8cc2c37c71314b8c443cf80392 (patch) | |
tree | c3993b270ccdfa757ba310c42da0ae7c5b9d9351 /tests/test-sigsuspend.lua | |
parent | edeef019e8ad8b60f0547a854dc7763f98ff4c40 (diff) | |
download | luxio-4c42af5fd9b2bb8cc2c37c71314b8c443cf80392.tar.bz2 |
Add sigpending, sigsuspend, sigwait, sigwaitinfo, sigtimedwait and raise
Diffstat (limited to 'tests/test-sigsuspend.lua')
-rw-r--r-- | tests/test-sigsuspend.lua | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/test-sigsuspend.lua b/tests/test-sigsuspend.lua new file mode 100644 index 0000000..5c85e77 --- /dev/null +++ b/tests/test-sigsuspend.lua @@ -0,0 +1,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") |