From: Oleg Nesterov Date: Wed, 16 Dec 2009 00:47:24 +0000 (-0800) Subject: signals: cosmetic, collect_signal: use SI_USER X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=7486e5d9fc773cb67c29381567bed5236fc9573c;p=deliverable%2Flinux.git 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: Oleg Nesterov Cc: Roland McGrath Cc: Sukadev Bhattiprolu Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/signal.c b/kernel/signal.c index b65879d4e08f..d7c7f3cd4da8 100644 --- a/kernel/signal.c +++ b/kernel/signal.c @@ -423,7 +423,7 @@ still_pending: */ 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; }