Use time() instead of clock() for timeouts.
The clock() function returns the processor time used by the process. This is not a good timeout mechanism since the code is suspended most of the time waiting for the forked process to finish. Replace with the time() function. Bug: 17154069 (cherry picked from commit 89d4949f) Change-Id: I42f0f24ee53ef99955fd482a1089e39d491f3bd5
Loading
Please register or sign in to comment