Mark constexpr values needed within non-implicitly-capturing lambdas as static
[folly.git] / folly / Subprocess.h
index 2afa2382b1fd66fb9e091c29cbc9ac23eb853886..01e6d2c07ab148b833a2c2915fa0d67b4e2f6550 100644 (file)
 #include <folly/Range.h>
 #include <folly/gen/String.h>
 #include <folly/io/IOBufQueue.h>
+#include <folly/portability/SysResource.h>
 
 namespace folly {
 
@@ -509,7 +510,7 @@ class Subprocess {
    * e.g. if you wait for the underlying process without going through this
    * Subprocess instance.
    */
-  ProcessReturnCode poll();
+  ProcessReturnCode poll(struct rusage* ru = nullptr);
 
   /**
    * Poll the child's status.  If the process is still running, return false.