mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-02 17:28:30 +00:00
Work towards improving signals and processes
This commit is contained in:
parent
de703b182c
commit
d7ac16a9ed
96 changed files with 1474 additions and 427 deletions
|
@ -25,14 +25,14 @@
|
|||
/**
|
||||
* Blocks until SIG ∉ MASK is delivered to process.
|
||||
*
|
||||
* @param mask is a bitset of signals to block temporarily
|
||||
* @param ignore is a bitset of signals to block temporarily
|
||||
* @return -1 w/ EINTR
|
||||
* @asyncsignalsafe
|
||||
*/
|
||||
int sigsuspend(const sigset_t *mask) {
|
||||
if (!mask) return efault();
|
||||
int sigsuspend(const sigset_t *ignore) {
|
||||
if (!ignore) return efault();
|
||||
if (!IsWindows()) {
|
||||
return sigsuspend$sysv(mask, 8);
|
||||
return sigsuspend$sysv(ignore, 8);
|
||||
} else {
|
||||
return enosys(); /* TODO(jart): Implement me! */
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue