Add sigpending to redbean unix.* module (#605)

This commit is contained in:
Paul Kulchenko 2022-09-09 04:20:13 -07:00 committed by GitHub
parent 2d17ab016c
commit f68151c010
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 0 deletions

View file

@ -3887,6 +3887,12 @@ UNIX MODULE
It's a good idea to not do too much work in a signal handler.
unix.sigpending()
├─→ mask:unix.Sigset
└─→ nil, unix.Errno
Returns the set of signals that are pending for delivery.
unix.sigsuspend([mask:unix.Sigset])
└─→ nil, unix.Errno