diff options
| author | 2016-02-29 16:20:34 -0800 | |
|---|---|---|
| committer | 2016-03-02 15:04:18 -0800 | |
| commit | 4b8f6f9adb8ee1a06b145c8dc83a672f8d0ac80f (patch) | |
| tree | 95ed5fca46bde00682b40464ea70fefa4c6d5b2f /libs/gui/BufferQueueConsumer.cpp | |
| parent | cc19ec809e45616449f332d2e72c754d7debf9fb (diff) | |
dumpsys: use a socket for dumping, add timeout support.
Passing the stdout file descriptor directly to a service to dump with
leads to bad things happening if the service hangs, or dumpsys is
terminated prematurely. For example, `dumpsys foo | cat` will not
terminate, even if the dumpsys process is killed, since the write end of
the pipe is still alive in the hung service.
Pass an intermediate socketpair when dumping services to avoid this.
Bug: http://b/26849443
Change-Id: Ide18741080355b3c680275a59172c61734eca92d
Diffstat (limited to 'libs/gui/BufferQueueConsumer.cpp')
0 files changed, 0 insertions, 0 deletions