[Devel] Re: [PATCH 3/4] signals: cosmetic, collect_signal: use SI_USER
Sukadev Bhattiprolu
sukadev at linux.vnet.ibm.com
Mon Oct 5 11:03:54 PDT 2009
Oleg Nesterov [oleg at redhat.com] wrote:
| 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 <oleg at redhat.com>
Reviewed-by: Sukadev Bhattiprolu <sukadev at us.ibm.com>
| ---
|
| 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;
| }
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
More information about the Devel
mailing list