pusher / crank

Process slow restarter
http://pusher.github.io/crank/man/
MIT License
38 stars 3 forks source link

Fix resource usage reporting #16

Closed zimbatm closed 10 years ago

zimbatm commented 10 years ago

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.

zimbatm commented 10 years ago

getrusage(2) only works for self or all terminated child processes.

zimbatm commented 10 years ago

Entirely removed in 502d1934956fce87ff229fcee157ad17e0d77d71 since there is no POSIX API to do that.