Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Fix proc_representative_lwp(); a closing brace was ...
details: https://anonhg.NetBSD.org/src/rev/a31187b2443d
branches: trunk
changeset: 542413:a31187b2443d
user: nathanw <nathanw%NetBSD.org@localhost>
date: Tue Jan 28 02:20:35 2003 +0000
description:
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.
diffstat:
sys/kern/kern_lwp.c | 22 +++++++++++-----------
1 files changed, 11 insertions(+), 11 deletions(-)
diffs (37 lines):
diff -r e467b9684f9c -r a31187b2443d sys/kern/kern_lwp.c
--- a/sys/kern/kern_lwp.c Tue Jan 28 02:09:34 2003 +0000
+++ b/sys/kern/kern_lwp.c Tue Jan 28 02:20:35 2003 +0000
@@ -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 @@
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:
Home |
Main Index |
Thread Index |
Old Index