signals: introduce kernel_sigaction()
authorOleg Nesterov <[email protected]>
Fri, 6 Jun 2014 21:37:00 +0000 (14:37 -0700)
committerLinus Torvalds <[email protected]>
Fri, 6 Jun 2014 23:08:12 +0000 (16:08 -0700)
commitb4e74264eb0b03f42097fa70a0766312156244a0
treef681b406765648b4fb6dde9b1c672b1276937a79
parent580d34e42ad621736a3c53c9c11a2152c18a4068
signals: introduce kernel_sigaction()

Now that allow_signal() is really trivial we can unify it with
disallow_signal().  Add the new helper, kernel_sigaction(), and
reimplement allow_signal/disallow_signal as a trivial wrappers.

This saves one EXPORT_SYMBOL() and the new helper can have more users.

Signed-off-by: Oleg Nesterov <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Al Viro <[email protected]>
Cc: David Woodhouse <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Geert Uytterhoeven <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Mathieu Desnoyers <[email protected]>
Cc: Richard Weinberger <[email protected]>
Cc: Steven Rostedt <[email protected]>
Cc: Tejun Heo <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/signal.h
kernel/signal.c