From efa7ca06476c7ec41712ddb46d39d7b38deae5c6 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Sat, 12 Jun 2004 16:41:45 -0700 Subject: [PATCH] fix the exit-vs-timer race fix As Roland McGrath points out, we need to zero task->it_virt_value to prevent timer-based signal delivery, not ->it_virt_incr. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- kernel/exit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kernel') diff --git a/kernel/exit.c b/kernel/exit.c index 0be17fec85fe..3a51fec0aabc 100644 --- a/kernel/exit.c +++ b/kernel/exit.c @@ -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 * 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->rlim[RLIMIT_CPU].rlim_cur = RLIM_INFINITY; -- cgit v1.2.3