OSDN Git Service

Rootcanal catch SIGPIPE
authorHansong Zhang <hsz@google.com>
Fri, 6 Dec 2019 20:58:10 +0000 (12:58 -0800)
committerHansong Zhang <hsz@google.com>
Fri, 6 Dec 2019 22:17:15 +0000 (14:17 -0800)
commitdd2ae5aaec5cace01bb2047e73121d53397b0f9e
tree2e58f36b5aab0d914cb61f9a17245aa384972200
parent76ffd9178167975763d9e811e9aad057e2c1dfa5
Rootcanal catch SIGPIPE

In case the client socket is closed, and rootcanal doesn't detect it due
to TimerTick not fired, writing to the socket causes a SIGPIPE and we
need to catch it to prevent rootcanal from crash.

Bug: 138259663
Test: run_cert.sh with empty test case
Change-Id: I3b9753cfc1cf09fcd7ea123d79048a9b8bacdd87
vendor_libs/test_vendor_lib/desktop/test_environment.cc
vendor_libs/test_vendor_lib/model/devices/h4_packetizer.cc