ppid: PPID fbsd.
This commit is contained in:
parent
d4d94c97c2
commit
7e358de2b3
|
@ -858,8 +858,10 @@ _proc_thread_info(struct kinfo_proc *kp, Eina_Bool is_thread)
|
|||
if (!p) return NULL;
|
||||
|
||||
p->pid = kp->ki_pid;
|
||||
p->ppid = kp->ki_ppid;
|
||||
p->uid = kp->ki_uid;
|
||||
|
||||
|
||||
if (!is_thread)
|
||||
_cmd_get(p, kp);
|
||||
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
typedef struct _Proc_Info
|
||||
{
|
||||
pid_t pid;
|
||||
pid_t ppid;
|
||||
uid_t uid;
|
||||
int8_t nice;
|
||||
int8_t priority;
|
||||
|
|
|
@ -391,6 +391,7 @@ _proc_info_update(void *data)
|
|||
elm_object_text_set(ui->entry_pid_uid, eina_slstr_printf("%d", proc->uid));
|
||||
elm_object_text_set(ui->entry_pid_cpu,
|
||||
eina_slstr_printf("%d", proc->cpu_id));
|
||||
elm_object_text_set(ui->entry_pid_ppid, eina_slstr_printf("%d", proc->ppid));
|
||||
elm_object_text_set(ui->entry_pid_threads,
|
||||
eina_slstr_printf("%d", proc->numthreads));
|
||||
elm_object_text_set(ui->entry_pid_virt, evisum_size_format(proc->mem_virt));
|
||||
|
@ -527,6 +528,11 @@ _process_tab_add(Evas_Object *parent, Ui_Process *ui)
|
|||
ui->entry_pid_uid = entry = _entry_add(parent);
|
||||
elm_table_pack(table, entry, 1, i++, 1, 1);
|
||||
|
||||
label = _label_add(parent, _("PPID:"));
|
||||
elm_table_pack(table, label, 0, i, 1, 1);
|
||||
ui->entry_pid_ppid = entry = _entry_add(parent);
|
||||
elm_table_pack(table, entry, 1, i++, 1, 1);
|
||||
|
||||
#if defined(__MacOS__)
|
||||
label = _label_add(parent, _("WQ #:"));
|
||||
#else
|
||||
|
|
|
@ -25,6 +25,7 @@ typedef struct _Ui_Process {
|
|||
Evas_Object *entry_pid_cmd_args;
|
||||
Evas_Object *entry_pid_user;
|
||||
Evas_Object *entry_pid_pid;
|
||||
Evas_Object *entry_pid_ppid;
|
||||
Evas_Object *entry_pid_uid;
|
||||
Evas_Object *entry_pid_cpu;
|
||||
Evas_Object *entry_pid_threads;
|
||||
|
|
Loading…
Reference in New Issue