]> git.baikalelectronics.ru Git - kernel.git/commit
posix timers: discard SI_TIMER signals on exec
authorOleg Nesterov <oleg@tv-sign.ru>
Mon, 26 May 2008 16:55:42 +0000 (20:55 +0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 26 May 2008 17:37:07 +0000 (10:37 -0700)
commit9cc03c2dfe3d955ea568399e66b5d32217cc1f67
treeb35f29814b46593d864e8c8921e9eccac5a5a173
parent5264b464daf41d218d8d932d0f3083021b2a5224
posix timers: discard SI_TIMER signals on exec

Based on Roland's patch. This approach was suggested by Austin Clements
from the very beginning, and then by Linus.

As Austin pointed out, the execing task can be killed by SI_TIMER signal
because exec flushes the signal handlers, but doesn't discard the pending
signals generated by posix timers. Perhaps not a bug, but people find this
surprising. See http://bugzilla.kernel.org/show_bug.cgi?id=10460

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Austin Clements <amdragon+kernelbugzilla@mit.edu>
Cc: Roland McGrath <roland@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/exec.c
include/linux/sched.h
kernel/signal.c