lkml.org 
[lkml]   [2002]   [Mar]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: recalc_sigpending() / recalc_sigpending_tsk() ?
Date
From

> So I would suggest solving this problem by just adding something like
>
> /* Block all signals except for mask */
> void sigallow(unsigned long mask)
> {
> spin_lock_irq(&current->sigmask_lock);
> siginitsetinv(current->blocked, mask);
> recalc_sigpending();
> spin_unlock_irq(&current->sigmask_lock);
> }
>
> and be done with it. That seems to be what most of the non-signal.c users
> actually _want_.

Maybe you should return the old mask too?

David
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:24    [W:0.059 / U:27.240 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site