stub proc_state.threads

This commit is contained in:
Doug MacEachern 2005-11-23 00:39:37 +00:00
parent 059b8554ac
commit 6f791278db
4 changed files with 4 additions and 0 deletions

View File

@ -940,6 +940,7 @@ int sigar_proc_state_get(sigar_t *sigar, sigar_pid_t pid,
procstate->priority = pinfo->KI_PRI; procstate->priority = pinfo->KI_PRI;
procstate->nice = pinfo->KI_NICE; procstate->nice = pinfo->KI_NICE;
procstate->tty = SIGAR_FIELD_NOTIMPL; /*XXX*/ procstate->tty = SIGAR_FIELD_NOTIMPL; /*XXX*/
procstate->threads = SIGAR_FIELD_NOTIMPL;
switch (pinfo->KI_STAT) { switch (pinfo->KI_STAT) {
case SIDL: case SIDL:

View File

@ -214,6 +214,7 @@ int sigar_proc_state_get(sigar_t *sigar, sigar_pid_t pid,
procstate->nice = -1; procstate->nice = -1;
procstate->tty = -1; procstate->tty = -1;
procstate->state = 'R'; procstate->state = 'R';
procstate->threads = -1;
return SIGAR_OK; return SIGAR_OK;
} }

View File

@ -279,6 +279,7 @@ int sigar_proc_state_get(sigar_t *sigar, sigar_pid_t pid,
procstate->priority = SIGAR_FIELD_NOTIMPL; procstate->priority = SIGAR_FIELD_NOTIMPL;
procstate->nice = SIGAR_FIELD_NOTIMPL; procstate->nice = SIGAR_FIELD_NOTIMPL;
procstate->tty = info.pi_ttyd; procstate->tty = info.pi_ttyd;
procstate->threads = SIGAR_FIELD_NOTIMPL;
switch (info.pi_status) { switch (info.pi_status) {
case PI_ACTIVE: case PI_ACTIVE:

View File

@ -136,6 +136,7 @@ int sigar_proc_state_get(sigar_t *sigar, sigar_pid_t pid,
procstate->nice = -1; procstate->nice = -1;
procstate->tty = -1; procstate->tty = -1;
procstate->state = 'R'; procstate->state = 'R';
procstate->threads = -1;
return SIGAR_OK; return SIGAR_OK;
} }