Commit efa7ca06 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] fix the exit-vs-timer race fix

As Roland McGrath <roland@redhat.com> points out, we need to zero
task->it_virt_value to prevent timer-based signal delivery, not
->it_virt_incr.
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 9566ad65
...@@ -740,7 +740,7 @@ static void exit_notify(struct task_struct *tsk) ...@@ -740,7 +740,7 @@ static void exit_notify(struct task_struct *tsk)
* Clear these here so that update_process_times() won't try to deliver * Clear these here so that update_process_times() won't try to deliver
* itimer, profile or rlimit signals to this task while it is in late exit. * itimer, profile or rlimit signals to this task while it is in late exit.
*/ */
tsk->it_virt_incr = 0; tsk->it_virt_value = 0;
tsk->it_prof_value = 0; tsk->it_prof_value = 0;
tsk->rlim[RLIMIT_CPU].rlim_cur = RLIM_INFINITY; tsk->rlim[RLIMIT_CPU].rlim_cur = RLIM_INFINITY;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment