diff options
author | Oleg Nesterov <oleg@tv-sign.ru> | 2008-05-26 12:55:42 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-05-26 13:37:07 -0400 |
commit | cbaffba12ce08beb3e80bfda148ee0fa14aac188 (patch) | |
tree | b35f29814b46593d864e8c8921e9eccac5a5a173 /include | |
parent | c8e85b4f4b9ee23bf0e79bdeb3da274a0f9c663f (diff) |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/sched.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 5395a6176f4b..3e05e5474749 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -1848,7 +1848,9 @@ extern void exit_thread(void); | |||
1848 | extern void exit_files(struct task_struct *); | 1848 | extern void exit_files(struct task_struct *); |
1849 | extern void __cleanup_signal(struct signal_struct *); | 1849 | extern void __cleanup_signal(struct signal_struct *); |
1850 | extern void __cleanup_sighand(struct sighand_struct *); | 1850 | extern void __cleanup_sighand(struct sighand_struct *); |
1851 | |||
1851 | extern void exit_itimers(struct signal_struct *); | 1852 | extern void exit_itimers(struct signal_struct *); |
1853 | extern void flush_itimer_signals(void); | ||
1852 | 1854 | ||
1853 | extern NORET_TYPE void do_group_exit(int); | 1855 | extern NORET_TYPE void do_group_exit(int); |
1854 | 1856 | ||