commit | 96002aa91e9006c474f2bcf83dca8a9ea0ad0e77 | [log] [tgz] |
---|---|---|
author | Rhed Jao <rhedjao@google.com> | Thu Jan 07 03:21:50 2021 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Thu Jan 07 03:21:50 2021 +0000 |
tree | bf6dac3973d1126c0354793c2107cddb53e76a7b | |
parent | 8e9e1764293ba12141995f59abac515bc5ead616 [diff] | |
parent | a19145fe2d1d283452eca49dd53e1df8a1c3c7cc [diff] |
Merge "Dumpsys: stop writing when timed-out"
diff --git a/cmds/dumpsys/dumpsys.cpp b/cmds/dumpsys/dumpsys.cpp index 1327cfd..a017246 100644 --- a/cmds/dumpsys/dumpsys.cpp +++ b/cmds/dumpsys/dumpsys.cpp
@@ -427,7 +427,7 @@ << strerror(errno) << std::endl; status = -errno; break; - } else if (rc == 0) { + } else if (rc == 0 || time_left_ms() == 0) { status = TIMED_OUT; break; }