Fix proc_representative_lwp(); a closing brace was in the wrong place,

which means it would return the first non-dead LWP.

Pointed out by Stephan Uphoff.
This commit is contained in:
nathanw 2003-01-28 02:20:35 +00:00
parent e45b3e7121
commit 892c25bc38
1 changed files with 11 additions and 11 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: kern_lwp.c,v 1.2 2003/01/18 10:06:22 thorpej Exp $ */
/* $NetBSD: kern_lwp.c,v 1.3 2003/01/28 02:20:35 nathanw Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -595,17 +595,17 @@ proc_representative_lwp(p)
suspended = l;
break;
}
if (onproc)
return onproc;
if (running)
return running;
if (sleeping)
return sleeping;
if (stopped)
return stopped;
if (suspended)
return suspended;
}
if (onproc)
return onproc;
if (running)
return running;
if (sleeping)
return sleeping;
if (stopped)
return stopped;
if (suspended)
return suspended;
break;
case SDEAD:
case SZOMB: