fixed ps
This commit is contained in:
parent
c705f3b30b
commit
c6e315c24c
3 changed files with 43 additions and 30 deletions
|
@ -13,7 +13,7 @@ struct mu_proc {
|
|||
|
||||
/* from stat */
|
||||
pid_t pid;
|
||||
char cmdline[PATH_MAX + 1];
|
||||
char cmd[PATH_MAX + 1];
|
||||
char state;
|
||||
int ppid;
|
||||
int pgrp;
|
||||
|
@ -36,6 +36,9 @@ struct mu_proc {
|
|||
unsigned long long starttime;
|
||||
unsigned long vsize;
|
||||
long rss;
|
||||
|
||||
/* from cmdline */
|
||||
char cmdline[PATH_MAX + 1];
|
||||
};
|
||||
|
||||
int mu_proc_status(const char *prog_name, const pid_t pid, struct mu_proc *proc_s);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue