Use sigprocmask instead of _sigprocmask

This commit is contained in:
Guillem Jover 2008-07-12 07:55:57 +03:00
parent 2729ca824d
commit ad52f2eb4c

View File

@ -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;