summaryrefslogtreecommitdiff
path: root/libsparse/sparse.cpp
diff options
context:
space:
mode:
authorTom Cherry <tomcherry@google.com>2020-08-04 17:41:47 -0700
committerTom Cherry <tomcherry@google.com>2020-08-04 17:41:47 -0700
commit0d847fb4cb6e219f210689051dc4bd6c0dc120a0 (patch)
tree5379cf176720ca33ace1889b9cbe65a691c00882 /libsparse/sparse.cpp
parent3085d957e8451d2dee7e3b9e73bf10e51b6da746 (diff)
liblog: add a timeout for logd command socket operations
Add a 2s timeout for logd command socket operations: android_logger_clear android_logger_get_log_readable_size android_logger_get_log_size android_logger_set_log_size android_logger_get_statistics android_logger_get_prune_list android_logger_set_prune_list That correspond to: logcat -c logcat -g logcat -G logcat -S logcat -p logcat -P These operations should return immediately in typical circumstances, but if logd is stuck, they would otherwise block indefinitely. This allows the commands to gracefully timeout instead. Test: kill -s STOP `pidof logd`; logcat -g (and other options) times out appropriately Test: logcat -g (and other options) work successfully otherwise Change-Id: I6c4671a9b3daa4a454c0a14ae7d0b7d3b08be77a
Diffstat (limited to 'libsparse/sparse.cpp')
0 files changed, 0 insertions, 0 deletions