move __exit_signal() to kernel/exit.c
PATCH 1/3 move __exit_signal() to kernel/exit.c
__exit_signal() is private to release_task() now. I think it is better to make it static in kernel/exit.c and export flush_sigqueue() instead - this function is much more simple and straightforward.
Signed-off-by Oleg Nesterov <[email protected]>
include/linux/sched.h renamed from include/linux/sched.h~1_MOVE +0 -1
@@ -1143,7 +1143,6 @@ extern void exit_thread(void);extern void exit_files (struct task_struct *);extern void __cleanup_signal (struct signal_struct *);extern void cleanup_sighand (struct task_struct *); -extern void __exit_signal (struct task_struct *);extern void exit_itimers (struct signal_struct *); extern NORET_TYPE void do_group_exit(int);
include/linux/signal.h renamed from include/linux/signal.h~1_MOVE +2 -0
@@ -249,6 +249,8 @@ static inline void init_sigpending(strucINIT_LIST_HEAD (&sig->list); } +extern void flush_sigqueue (struct sigpending *queue); +/* Test if 'sig' is valid signal. Use this instead of testing _NSIG directly */ static inline int valid_signal (unsigned long sig) {
kernel/exit.c renamed from kernel/exit.c~1_MOVE +63 -0
75 lines not on this page · raw message
kernel/signal.c renamed from kernel/signal.c~1_MOVE +1 -64
82 lines not on this page · raw message