From f3cee4691de36dbdeb3bcaaedaaf409ad2b4ccdb Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Sun, 9 Feb 2003 02:17:26 -0800 Subject: Make sigprocmask() available to kernel threads too, since a lot of them do want to temporarily block signals. Kernel users can also block signals that are normally unblockable to user space, ie SIGKILL and SIGSTOP. Make nfsd and autofs use the new interface, as an example to others. --- include/linux/signal.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/linux/signal.h b/include/linux/signal.h index 53d9e4324557..dd2e25e2129f 100644 --- a/include/linux/signal.h +++ b/include/linux/signal.h @@ -204,6 +204,7 @@ static inline void init_sigpending(struct sigpending *sig) } extern long do_sigpending(void *, unsigned long); +extern int sigprocmask(int, sigset_t *, sigset_t *); #ifndef HAVE_ARCH_GET_SIGNAL_TO_DELIVER struct pt_regs; -- cgit v1.2.3