Skip to content

Commit

Permalink
[PATCH] timer exit cleanup
Browse files Browse the repository at this point in the history
Do all timer zapping in exit_itimers.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Ingo Molnar authored and Linus Torvalds committed Jun 17, 2005
1 parent 9700808 commit caf2857
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions kernel/exit.c
Original file line number Diff line number Diff line change
Expand Up @@ -811,10 +811,8 @@ fastcall NORET_TYPE void do_exit(long code)
acct_update_integrals(tsk);
update_mem_hiwater(tsk);
group_dead = atomic_dec_and_test(&tsk->signal->live);
if (group_dead) {
del_timer_sync(&tsk->signal->real_timer);
if (group_dead)
acct_process(code);
}
exit_mm(tsk);

exit_sem(tsk);
Expand Down
1 change: 1 addition & 0 deletions kernel/posix-timers.c
Original file line number Diff line number Diff line change
Expand Up @@ -1197,6 +1197,7 @@ void exit_itimers(struct signal_struct *sig)
tmr = list_entry(sig->posix_timers.next, struct k_itimer, list);
itimer_delete(tmr);
}
del_timer_sync(&sig->real_timer);
}

/*
Expand Down

0 comments on commit caf2857

Please sign in to comment.