lkml.org 
[lkml]   [2023]   [Aug]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] signal: Fix the error return of kill -1
On 08/15, David Laight wrote:
>
> or maybe even:
> } else {
> struct task_struct * p;
> int err;
> ret = -ESRCH;
>
> for_each_process(p) {
> if (task_pid_vnr(p) > 1 &&
> !same_thread_group(p, current)) {
> err = group_send_sig_info(sig, info, p,
> PIDTYPE_MAX);
> if (ret)
> ret = err;

Hmm, indeed ;)

and "err" can be declared inside the loop.

Oleg.

\
 
 \ /
  Last update: 2023-08-15 17:14    [W:2.056 / U:0.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site