Lines Matching defs:state
46 int state;
57 int state;
82 #define JF_CHANGED 0x040 /* process has changed state */
101 volatile int state; /* job state */
106 mksh_ttyst ttystat; /* saved tty state for stopped jobs */
226 switch (p->state) {
294 (j->state == PSTOPPED ||
295 (j->state == PRUNNING &&
304 if (j->state == PSTOPPED) {
474 p->state = PRUNNING;
499 j->state = PRUNNING;
732 if (j->ppid == procpid && j->state == PRUNNING)
800 if (j->state == PSTOPPED && (sig == SIGTERM || sig == SIGHUP))
846 if (p->state == PSTOPPED) {
847 p->state = PRUNNING;
858 j->state = PRUNNING;
865 if (j->state == PRUNNING) {
890 if (j->state == PRUNNING && mksh_killpg(j->pgrp, SIGCONT) < 0) {
927 if (j->ppid == procpid && j->state == PSTOPPED)
931 j->ppid == procpid && j->state == PRUNNING)
982 if (j->state == PEXITED || j->state == PSIGNALLED)
1019 if (j->state == PEXITED || j->state == PSIGNALLED)
1121 * wait for job to complete or change state
1149 while (j->state == PRUNNING ||
1150 ((flags & JW_STOPPEDWAIT) && j->state == PSTOPPED)) {
1192 if (j->state == PSTOPPED &&
1199 if (j->state == PSTOPPED) {
1215 if (j->state == PEXITED && j->status == 0 &&
1232 if (j->state == PSTOPPED)
1243 if (Flag(FMONITOR) && j->state == PSIGNALLED &&
1303 && (!Flag(FMONITOR) || j->state != PSTOPPED)
1309 if (j->state != PSTOPPED
1403 p->state = PSTOPPED;
1407 p->state = j->state = PRUNNING;
1414 p->state = PSIGNALLED;
1416 p->state = PEXITED;
1437 * and state are updated, asynchronous job notification is done and,
1457 if (p->state == PRUNNING)
1460 if (p->state > jstate)
1461 jstate = p->state;
1463 j->state = jstate;
1471 if (j->state == PEXITED || j->state == PSIGNALLED) {
1499 if (j->state == PSTOPPED)
1520 if (!(j->flags & JF_WAITING) && j->state != PSTOPPED)
1530 j->state != PSTOPPED) {
1549 int state;
1580 switch (p->state) {
1660 state = p->state;
1663 while (p && p->state == state && p->status == status) {
1907 for (; curr && curr->state == PSTOPPED; prev = &curr->next,