am 5a6f593b
: Merge "Use sigemptyset to initialise sigset_t values. sigset_t may not be implemented as an integral type."
* commit '5a6f593b6197b96f980d9d45f9a981ef8705caf4': Use sigemptyset to initialise sigset_t values. sigset_t may not be implemented as an integral type.
This commit is contained in:
commit
c59b248241
@ -37,6 +37,7 @@ sigblock(int mask)
|
||||
sigset_t the_sigset;
|
||||
} in, out;
|
||||
|
||||
sigemptyset(&in.the_sigset);
|
||||
in.the_mask = mask;
|
||||
|
||||
n = sigprocmask(SIG_BLOCK, &in.the_sigset, &out.the_sigset);
|
||||
|
@ -38,6 +38,7 @@ sigsetmask(int mask)
|
||||
sigset_t the_sigset;
|
||||
} in, out;
|
||||
|
||||
sigemptyset(&in.the_sigset);
|
||||
in.the_mask = mask;
|
||||
|
||||
n = sigprocmask(SIG_SETMASK, &in.the_sigset, &out.the_sigset);
|
||||
|
Loading…
Reference in New Issue
Block a user