Merge "Use sleep_for for fsck timeout" am: 0777c5d604
Original change: https://android-review.googlesource.com/c/platform/system/vold/+/2311079 Change-Id: I007ddd743a88a629fac27f6bf8575957661de955 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
93c9dbe115
1 changed files with 1 additions and 1 deletions
|
@ -766,7 +766,7 @@ status_t ForkExecvpTimeout(const std::vector<std::string>& args, std::chrono::se
|
|||
}
|
||||
pid_t timer_pid = fork();
|
||||
if (timer_pid == 0) {
|
||||
sleep(timeout.count());
|
||||
std::this_thread::sleep_for(timeout);
|
||||
_exit(ETIMEDOUT);
|
||||
}
|
||||
if (timer_pid == -1) {
|
||||
|
|
Loading…
Reference in a new issue