summaryrefslogtreecommitdiff
path: root/libs/gui/BLASTBufferQueue.cpp
diff options
context:
space:
mode:
author Tim Murray <timmurray@google.com> 2022-07-07 17:08:03 -0700
committer Tim Murray <timmurray@google.com> 2022-07-11 20:03:24 +0000
commited65c767a62fb9eb5e060922495c87c1ac3dd076 (patch)
treea0a1bb1ea7ea46be907b583d8f84723891855dd6 /libs/gui/BLASTBufferQueue.cpp
parent7e9968c2598be12f24545f0a260fd8a6c52086bd (diff)
dumpstate: only poll 30s for initial data
Before this patch, dumpstate will poll an fd for 30s per line. If the fd blocks on poll, then this inserts a 30s sleep, which is bad. After this patch, dumpstate will poll an fd for 30s only for the initial read of the fd. All subsequent reads of that fd will return immediately, and as soon as the fd does not have any available data to read, the polling will cease. Test: bug reports work and don't time out on /dev/trusty-log0 Bug: 238220830 Change-Id: Ie34cebac62608a914477978704fef813372a273d
Diffstat (limited to 'libs/gui/BLASTBufferQueue.cpp')
0 files changed, 0 insertions, 0 deletions