proc_state SONPROC == R

This commit is contained in:
Doug MacEachern 2008-02-19 06:16:43 +00:00
parent a941cdc3ba
commit 4344a1457a
1 changed files with 6 additions and 0 deletions

View File

@ -1218,6 +1218,9 @@ int sigar_proc_state_get(sigar_t *sigar, sigar_pid_t pid,
procstate->state = 'D'; procstate->state = 'D';
break; break;
case SRUN: case SRUN:
#ifdef SONPROC
case SONPROC:
#endif
procstate->state = 'R'; procstate->state = 'R';
break; break;
case SSLEEP: case SSLEEP:
@ -1229,6 +1232,9 @@ int sigar_proc_state_get(sigar_t *sigar, sigar_pid_t pid,
case SZOMB: case SZOMB:
procstate->state = 'Z'; procstate->state = 'Z';
break; break;
default:
procstate->state = '?';
break;
} }
return SIGAR_OK; return SIGAR_OK;