mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-03 17:58:30 +00:00
Add sigpending to redbean unix.* module (#605)
This commit is contained in:
parent
2d17ab016c
commit
f68151c010
2 changed files with 21 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue