Fixes the system server hang forever issue caused by
the monkey not read completed the sync pipe.

- Incorrect exception handle.

When no space left on the device the write will
occurs an I/O exception, so we needed to catch it
and continue to read the data of the sync pipe to
aviod the bugreport hang forever.

https://code.google.com/p/android/issues/detail?id=211970

Change-Id: I80c6548434587bcc17b50f0c246a5887cdd339cf
Signed-off-by: songjinshi <songjinshi@xiaomi.com>
1 file changed