mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
signal: Remove the signal number and task parameters from force_sig_info
force_sig_info always delivers to the current task and the signal parameter always matches info.si_signo. So remove those parameters to make it a simpler less error prone interface, and to make it clear that none of the callers are doing anything clever. This guarantees that force_sig_info will not grow any new buggy callers that attempt to call force_sig on a non-current task, or that pass an signal number that does not match info.si_signo. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
This commit is contained in:
parent
59c0e696a6
commit
a89e9b8abf
4 changed files with 10 additions and 10 deletions
|
@ -329,7 +329,7 @@ int force_sig_ptrace_errno_trap(int errno, void __user *addr);
|
|||
|
||||
extern int send_sig_info(int, struct kernel_siginfo *, struct task_struct *);
|
||||
extern void force_sigsegv(int sig);
|
||||
extern int force_sig_info(int, struct kernel_siginfo *, struct task_struct *);
|
||||
extern int force_sig_info(struct kernel_siginfo *);
|
||||
extern int __kill_pgrp_info(int sig, struct kernel_siginfo *info, struct pid *pgrp);
|
||||
extern int kill_pid_info(int sig, struct kernel_siginfo *info, struct pid *pid);
|
||||
extern int kill_pid_usb_asyncio(int sig, int errno, sigval_t addr, struct pid *,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue