lkml.org 
[lkml]   [2003]   [Dec]   [3]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateWed, 3 Dec 2003 18:23:20 +0530
FromSrivatsa Vaddagiri <>
SubjectRe: kernel BUG at kernel/exit.c:792!
On Wed, Dec 03, 2003 at 05:23:07PM +0530, Raj wrote:
> 
> >Does it make sense to check for leader_task being alive
> >after the tasklist lock is grabbed and return immediately
> >if it is not alive (as the patch below does)?
> >
> > 
> >
> maybe i am wrong, but wouldnt a 'break' in the do-while suffice rather 
> than a goto ?
> 

I was not sure if the pid_alive check inside the do-while loop
is for leader_task only or for non-leader tasks also. 
If that check is for non-leader tasks also, then we would
like to retain it still ..

> /Raj

> --- base.c	2003-10-26 00:13:57.000000000 +0530
> +++ base.c.fix	2003-12-03 17:20:18.877679360 +0530
> @@ -1669,7 +1669,7 @@
>  	do {
>  		int tid = task->pid;
>  		if (!pid_alive(task))
> -			continue;
> +			break;
>  		if (--index >= 0)
>  			continue;
>  		tids[nr_tids] = tid;


-- 


Thanks and Regards,
Srivatsa Vaddagiri,
Linux Technology Center,
IBM Software Labs,
Bangalore, INDIA - 560033
-
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/

\
 
 \ /
  Last update: 2005-03-22 12:59    [from the cache]
©2003-2008