Track process uptime
This commit is contained in:
@ -15,6 +15,7 @@
|
||||
#include "ipc/pipe/pipe.h"
|
||||
#include "sysdefs/proc.h"
|
||||
#include "sysdefs/fs.h"
|
||||
#include "time/time.h"
|
||||
|
||||
#define PROC_REAPER_FREQ 30
|
||||
|
||||
@ -147,6 +148,8 @@ Proc *proc_spawnuser(char *mountpoint, char *path) {
|
||||
proc->pipes[1] = dlmalloc(sizeof(IpcPipe));
|
||||
ipc_pipeinit(proc->pipes[1], proc->pid);
|
||||
|
||||
time_get(&proc->time);
|
||||
|
||||
return proc;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user