Add pollWithRusage to Subprocess
Summary: I was looking for a way to get rusage of a particular pid because getrusage isn't good enough since it records the rusage of all the children that has been terminated (and waited for). Even though wait4 is marked as deprecated, wait3 (the cousin of wait4) is still being used in places like time. Furthermore, there is no suitable replacement to get rusage with wait*. Reviewed By: yfeldblum Differential Revision: D5008084 fbshipit-source-id: 6e511ebec7464d21309e5112aca95083e9307ea1
Showing
Please register or sign in to comment