mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-01-24 02:51:43 +01:00
Use sigprocmask instead of _sigprocmask
This commit is contained in:
parent
2729ca824d
commit
ad52f2eb4c
@ -184,10 +184,10 @@ setmode(const char *p)
|
|||||||
* as best we can.
|
* as best we can.
|
||||||
*/
|
*/
|
||||||
sigfillset(&sigset);
|
sigfillset(&sigset);
|
||||||
(void)_sigprocmask(SIG_BLOCK, &sigset, &sigoset);
|
(void)sigprocmask(SIG_BLOCK, &sigset, &sigoset);
|
||||||
(void)umask(mask = umask(0));
|
(void)umask(mask = umask(0));
|
||||||
mask = ~mask;
|
mask = ~mask;
|
||||||
(void)_sigprocmask(SIG_SETMASK, &sigoset, NULL);
|
(void)sigprocmask(SIG_SETMASK, &sigoset, NULL);
|
||||||
|
|
||||||
setlen = SET_LEN + 2;
|
setlen = SET_LEN + 2;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user