Rip out get_signal_to_deliver()
Now we can turn get_signal() to the main function. Signed-off-by: Richard Weinberger <richard@nod.at>
This commit is contained in:

committed by
Richard Weinberger

parent
10b1c7ac8b
commit
828b1f65d2
@@ -280,7 +280,7 @@ struct ksignal {
|
||||
int sig;
|
||||
};
|
||||
|
||||
extern int get_signal_to_deliver(siginfo_t *info, struct k_sigaction *return_ka, struct pt_regs *regs, void *cookie);
|
||||
extern int get_signal(struct ksignal *ksig);
|
||||
extern void signal_setup_done(int failed, struct ksignal *ksig, int stepping);
|
||||
extern void exit_signals(struct task_struct *tsk);
|
||||
extern void kernel_sigaction(int, __sighandler_t);
|
||||
@@ -300,18 +300,6 @@ static inline void disallow_signal(int sig)
|
||||
kernel_sigaction(sig, SIG_IGN);
|
||||
}
|
||||
|
||||
/*
|
||||
* Eventually that'll replace get_signal_to_deliver(); macro for now,
|
||||
* to avoid nastiness with include order.
|
||||
*/
|
||||
#define get_signal(ksig) \
|
||||
({ \
|
||||
struct ksignal *p = (ksig); \
|
||||
p->sig = get_signal_to_deliver(&p->info, &p->ka, \
|
||||
signal_pt_regs(), NULL);\
|
||||
p->sig > 0; \
|
||||
})
|
||||
|
||||
extern struct kmem_cache *sighand_cachep;
|
||||
|
||||
int unhandled_signal(struct task_struct *tsk, int sig);
|
||||
|
Reference in New Issue
Block a user