commit | 0777c5d6048eb2f36a4cd80a1dd4240ff71fae17 | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Sat Dec 17 00:28:27 2022 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Sat Dec 17 00:28:27 2022 +0000 |
tree | 03f3427987adb0bdd57bb6fb5ad1fdb2a69cfea0 | |
parent | c4bc218452a2a1f52efd7989c9140f2abddcc16f [diff] | |
parent | 8cd81faa71b065fe33544e1ed7d49bbf5aef13c8 [diff] |
Merge "Use sleep_for for fsck timeout"
diff --git a/Utils.cpp b/Utils.cpp index 7bf8019..33dbaf6 100644 --- a/Utils.cpp +++ b/Utils.cpp
@@ -766,7 +766,7 @@ } pid_t timer_pid = fork(); if (timer_pid == 0) { - sleep(timeout.count()); + std::this_thread::sleep_for(timeout); _exit(ETIMEDOUT); } if (timer_pid == -1) {