am c59b2482: am 5a6f593b: Merge "Use sigemptyset to initialise sigset_t values. sigset_t may not be implemented as an integral type."
* commit 'c59b248241b18492d20e112230a907c14400275b': Use sigemptyset to initialise sigset_t values. sigset_t may not be implemented as an integral type.
This commit is contained in:
commit
38e53adadd
@ -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…
x
Reference in New Issue
Block a user