diff options
author | Roland McGrath <roland@redhat.com> | 2008-04-30 03:53:06 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-30 11:29:37 -0400 |
commit | 4e4c22c71144c1b2e22c257ec6cf08ccb5be1165 (patch) | |
tree | 0a41fb405ab60654f70ead9698d5ce414a066c37 /fs/select.c | |
parent | 80fe728d593e3a048a56610de932919f7d6d968a (diff) |
signals: add set_restore_sigmask
This adds the set_restore_sigmask() inline in <linux/thread_info.h> and
replaces every set_thread_flag(TIF_RESTORE_SIGMASK) with a call to it. No
change, but abstracts the details of the flag protocol from all the calls.
Signed-off-by: Roland McGrath <roland@redhat.com>
Cc: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: "Luck, Tony" <tony.luck@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/select.c')
-rw-r--r-- | fs/select.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/select.c b/fs/select.c index 00f58c5c7e05..32ce2b32fad1 100644 --- a/fs/select.c +++ b/fs/select.c | |||
@@ -498,7 +498,7 @@ sticky: | |||
498 | if (sigmask) { | 498 | if (sigmask) { |
499 | memcpy(¤t->saved_sigmask, &sigsaved, | 499 | memcpy(¤t->saved_sigmask, &sigsaved, |
500 | sizeof(sigsaved)); | 500 | sizeof(sigsaved)); |
501 | set_thread_flag(TIF_RESTORE_SIGMASK); | 501 | set_restore_sigmask(); |
502 | } | 502 | } |
503 | } else if (sigmask) | 503 | } else if (sigmask) |
504 | sigprocmask(SIG_SETMASK, &sigsaved, NULL); | 504 | sigprocmask(SIG_SETMASK, &sigsaved, NULL); |
@@ -805,7 +805,7 @@ asmlinkage long sys_ppoll(struct pollfd __user *ufds, unsigned int nfds, | |||
805 | if (sigmask) { | 805 | if (sigmask) { |
806 | memcpy(¤t->saved_sigmask, &sigsaved, | 806 | memcpy(¤t->saved_sigmask, &sigsaved, |
807 | sizeof(sigsaved)); | 807 | sizeof(sigsaved)); |
808 | set_thread_flag(TIF_RESTORE_SIGMASK); | 808 | set_restore_sigmask(); |
809 | } | 809 | } |
810 | ret = -ERESTARTNOHAND; | 810 | ret = -ERESTARTNOHAND; |
811 | } else if (sigmask) | 811 | } else if (sigmask) |