stub proc_state.threads
This commit is contained in:
1 parent
059b8554ac
commit
6f791278db
4 files changed
+4
No files matched your search
@@ -940,6 +940,7 @@ int sigar_proc_state_get(sigar_t *sigar, sigar_pid_t pid,
|
||||
procstate->priority = pinfo->KI_PRI;
|
||||
procstate->nice = pinfo->KI_NICE;
|
||||
procstate->tty = SIGAR_FIELD_NOTIMPL; /*XXX*/
|
||||
procstate->threads = SIGAR_FIELD_NOTIMPL;
|
||||
|
||||
switch (pinfo->KI_STAT) {
|
||||
case SIDL:
|
||||
|
||||
@@ -214,6 +214,7 @@ int sigar_proc_state_get(sigar_t *sigar, sigar_pid_t pid,
|
||||
procstate->nice = -1;
|
||||
procstate->tty = -1;
|
||||
procstate->state = 'R';
|
||||
procstate->threads = -1;
|
||||
|
||||
return SIGAR_OK;
|
||||
}
|
||||
|
||||
@@ -279,6 +279,7 @@ int sigar_proc_state_get(sigar_t *sigar, sigar_pid_t pid,
|
||||
procstate->priority = SIGAR_FIELD_NOTIMPL;
|
||||
procstate->nice = SIGAR_FIELD_NOTIMPL;
|
||||
procstate->tty = info.pi_ttyd;
|
||||
procstate->threads = SIGAR_FIELD_NOTIMPL;
|
||||
|
||||
switch (info.pi_status) {
|
||||
case PI_ACTIVE:
|
||||
|
||||
@@ -136,6 +136,7 @@ int sigar_proc_state_get(sigar_t *sigar, sigar_pid_t pid,
|
||||
procstate->nice = -1;
|
||||
procstate->tty = -1;
|
||||
procstate->state = 'R';
|
||||
procstate->threads = -1;
|
||||
|
||||
return SIGAR_OK;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user