PRUNNING
if ((jobflags & PRUNNING) == 0) {
if (np->p_flags & (PRUNNING | PSTOPPED)) {
np->p_flags |= PRUNNING;
pp->p_flags &= ~(PRUNNING | PSTOPPED | PREPORTED);
if ((fp->p_flags & (PPTIME | PRUNNING | PSTOPPED)) == 0 &&
if ((jobflags & (PRUNNING | PREPORTED)) == 0) {
if ((flags & (PRUNNING | PSTOPPED)) == 0)
if ((fp->p_flags & (PFOREGND | PRUNNING)) == PRUNNING)
if ((jobflags & PRUNNING) == 0)
pp->p_flags & PRUNNING) {
pp->p_flags = t->t_dflg & F_AMPERSAND ? PRUNNING : PRUNNING | PFOREGND;
case PRUNNING:
if (pp->p_flags & PPTIME && !(status & (PSTOPPED | PRUNNING))) {
if (jobflags & PTIME && (jobflags & (PSTOPPED | PRUNNING)) == 0) {
if (!(pprint(pp, flag) & (PRUNNING | PSTOPPED)))
#define PALLSTATES (PRUNNING|PSTOPPED|PNEXITED|PAEXITED|PSIGNALED|PINTERRUPTED)
while ((volatile int) j->state == PRUNNING
jstate = PRUNNING;
if (p->state == PRUNNING)
case PRUNNING:
|| (j->state == PRUNNING
p->state = PRUNNING;
j->state = PRUNNING;
if (j->ppid == procpid && j->state == PRUNNING)
p->state = PRUNNING;
j->state = PRUNNING;
if (j->state == PRUNNING) {
if (j->state == PRUNNING && killpg(j->pgrp, SIGCONT) < 0) {
&& j->ppid == procpid && j->state == PRUNNING)