This commit is contained in:
pups 2024-07-23 11:33:47 +03:00
parent c705f3b30b
commit c6e315c24c
3 changed files with 43 additions and 30 deletions

View file

@ -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);