From 6108deb7b0c2aadabab0cea8d871355a1423cbf0 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 25 Jan 2013 11:37:33 -0800 Subject: [PATCH] - wrapper: use waitpid() instead of wait4(), which is missing on Android. --- samples/wrapper/wrapper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/wrapper/wrapper.cpp b/samples/wrapper/wrapper.cpp index 00a68d1ade..fad7c29d6e 100644 --- a/samples/wrapper/wrapper.cpp +++ b/samples/wrapper/wrapper.cpp @@ -786,7 +786,7 @@ bool TASK::poll(int& status) { int wpid; struct rusage ru; - wpid = wait4(pid, &status, WNOHANG, &ru); + wpid = waitpid(pid, &status, WNOHANG); if (wpid) { getrusage(RUSAGE_CHILDREN, &ru); final_cpu_time = (float)ru.ru_utime.tv_sec + ((float)ru.ru_utime.tv_usec)/1e+6;