return old;
}
-sigset_t
-cfs_block_sigs(sigset_t bits)
+sigset_t cfs_block_sigs(unsigned long sigs)
{
unsigned long flags;
sigset_t old;
SIGNAL_MASK_LOCK(current, flags);
old = current->blocked;
- current->blocked = bits;
+ sigaddsetmask(¤t->blocked, sigs);
RECALC_SIGPENDING;
SIGNAL_MASK_UNLOCK(current, flags);
return old;
}
/* Block all signals except for the @sigs */
-cfs_sigset_t
-cfs_block_sigsinv(unsigned long sigs)
+sigset_t cfs_block_sigsinv(unsigned long sigs)
{
unsigned long flags;
- cfs_sigset_t old;
+ sigset_t old;
SIGNAL_MASK_LOCK(current, flags);
old = current->blocked;
- siginitsetinv(¤t->blocked, sigs);
+ sigaddsetmask(¤t->blocked, ~sigs);
RECALC_SIGPENDING;
SIGNAL_MASK_UNLOCK(current, flags);