Date: Fri, 31 May 2002 10:07:02 -0700 (PDT) From: Julian Elischer <julian@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 12203 for review Message-ID: <200205311707.g4VH72155195@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=12203 Change 12203 by julian@julian_ref on 2002/05/31 10:06:56 fix the userland as well (copy-and-paste error) Affected files ... ... //depot/projects/kse/lib/libkvm/kvm_proc.c#15 edit Differences ... ==== //depot/projects/kse/lib/libkvm/kvm_proc.c#15 (text+ko) ==== @@ -330,10 +330,10 @@ kp->ki_wchan = mainthread.td_wchan; /* XXXKSE */ kp->ki_traceflag = proc.p_traceflag; if (proc.p_state == PRS_NORMAL) { /* XXXKSE very aproximate */ - if ((mainthread.td_state == TDS_RUN) || + if ((mainthread.td_state == TDS_RUNQ) || (mainthread.td_state == TDS_RUNNING)) { kp->ki_stat = SRUN; - } else if (mainthread.td_state == TDS_SLEEP) { + } else if (mainthread.td_state == TDS_SLP) { kp->ki_stat = SSLEEP; } else if (P_SHOULDSTOP(&proc)) { kp->ki_stat = SSTOP; @@ -342,7 +342,7 @@ } else { kp->ki_stat = SWAIT; } - } else (proc.p_state == PRS_ZOMBIE) { + } else if (proc.p_state == PRS_ZOMBIE) { kp->ki_stat = SZOMB; } else { kp->ki_stat = SIDL; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205311707.g4VH72155195>