Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757135AbZJDCZP (ORCPT ); Sat, 3 Oct 2009 22:25:15 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756989AbZJDCZP (ORCPT ); Sat, 3 Oct 2009 22:25:15 -0400 Received: from mx1.redhat.com ([209.132.183.28]:30035 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756833AbZJDCZO (ORCPT ); Sat, 3 Oct 2009 22:25:14 -0400 Date: Sun, 4 Oct 2009 04:20:21 +0200 From: Oleg Nesterov To: Andrew Morton , Sukadev Bhattiprolu Cc: Daniel Lezcano , Sukadev Bhattiprolu , Linux Containers , roland@redhat.com, linux-kernel@vger.kernel.org Subject: [PATCH 3/4] signals: cosmetic, collect_signal: use SI_USER Message-ID: <20091004022021.GD21006@redhat.com> References: <4AC608BE.9020805@fr.ibm.com> <20091003171029.GA30442@us.ibm.com> <20091004021844.GA21006@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20091004021844.GA21006@redhat.com> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 880 Lines: 28 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 --- kernel/signal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- TTT_32/kernel/signal.c~3_COLLECT_SIGNAL 2009-10-04 03:09:44.000000000 +0200 +++ TTT_32/kernel/signal.c 2009-10-04 03:48:48.000000000 +0200 @@ -400,7 +400,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; } -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/