Re: [PATCH 3/4] signals: cosmetic, collect_signal: use SI_USER
From: Sukadev Bhattiprolu
Date: Mon Oct 05 2009 - 14:05:00 EST
Oleg Nesterov [oleg@xxxxxxxxxx] 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@xxxxxxxxxx>
Reviewed-by: Sukadev Bhattiprolu <sukadev@xxxxxxxxxx>
| ---
|
| 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/