Closed zimbatm closed 10 years ago
crankctl ps shows process usage but currently reports zero values.
crankctl ps
It currently depends on wait4(pid, nil, WNOHANG, rusage) syscall but apparently rusage is only reported for exited processes.
wait4(pid, nil, WNOHANG, rusage)
getrusage(2) only works for self or all terminated child processes.
getrusage(2)
Entirely removed in 502d1934956fce87ff229fcee157ad17e0d77d71 since there is no POSIX API to do that.
crankctl ps
shows process usage but currently reports zero values.It currently depends on
wait4(pid, nil, WNOHANG, rusage)
syscall but apparently rusage is only reported for exited processes.