提交 7486e5d9 编写于 作者: O Oleg Nesterov 提交者: Linus Torvalds

signals: cosmetic, collect_signal: use SI_USER

Trivial, s/0/SI_USER/ in collect_signal() for grep.

This is a bit confusing, we don't know the source of this signal.
But we don't care, and "info->si_code = 0" is imho worse.
Signed-off-by: NOleg Nesterov <oleg@redhat.com>
Cc: Roland McGrath <roland@redhat.com>
Cc: Sukadev Bhattiprolu <sukadev@us.ibm.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 dd34200a
......@@ -423,7 +423,7 @@ static void collect_signal(int sig, struct sigpending *list, siginfo_t *info)
*/
info->si_signo = sig;
info->si_errno = 0;
info->si_code = 0;
info->si_code = SI_USER;
info->si_pid = 0;
info->si_uid = 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册