mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 12:42:02 +00:00
signal: Generate the siginfo in force_sig
In preparation for removing the special case in force_sig_info for only having a signal number generate an appropriate siginfo in force_sig the last caller of force_sig_info that does not pass a filled out siginfo. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
This commit is contained in:
parent
8ad23dea80
commit
ffafd23b2c
@ -1605,7 +1605,15 @@ EXPORT_SYMBOL(send_sig);
|
||||
|
||||
void force_sig(int sig)
|
||||
{
|
||||
force_sig_info(sig, SEND_SIG_PRIV, current);
|
||||
struct kernel_siginfo info;
|
||||
|
||||
clear_siginfo(&info);
|
||||
info.si_signo = sig;
|
||||
info.si_errno = 0;
|
||||
info.si_code = SI_KERNEL;
|
||||
info.si_pid = 0;
|
||||
info.si_uid = 0;
|
||||
force_sig_info(info.si_signo, &info, current);
|
||||
}
|
||||
EXPORT_SYMBOL(force_sig);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user