diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2007-10-29 17:37:12 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-30 11:06:55 -0400 |
commit | cc5f916e90a811dd8f809b4d17409f98e74b237c (patch) | |
tree | 14a6c21e0f2de43553e94460aca897076d0f1952 /kernel | |
parent | c8593884f2768fa3ff6f7e199d75b6ca91f9e891 (diff) |
Freezer: do not allow freezing processes to clear TIF_SIGPENDING
Do not allow processes to clear their TIF_SIGPENDING if TIF_FREEZE is set,
so that they will not race with the freezer (like mysqld does, for example).
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Nigel Cunningham <nigel@suspend2.net>
Acked-by: Pavel Machek <pavel@ucw.cz>
Cc: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/signal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/signal.c b/kernel/signal.c index 4537bdda1ebf..909a0cc6bc70 100644 --- a/kernel/signal.c +++ b/kernel/signal.c | |||
@@ -124,7 +124,7 @@ void recalc_sigpending_and_wake(struct task_struct *t) | |||
124 | 124 | ||
125 | void recalc_sigpending(void) | 125 | void recalc_sigpending(void) |
126 | { | 126 | { |
127 | if (!recalc_sigpending_tsk(current)) | 127 | if (!recalc_sigpending_tsk(current) && !freezing(current)) |
128 | clear_thread_flag(TIF_SIGPENDING); | 128 | clear_thread_flag(TIF_SIGPENDING); |
129 | 129 | ||
130 | } | 130 | } |