diff options
author | Ruchir Rastogi <ruchirr@google.com> | 2020-04-13 17:06:57 -0700 |
---|---|---|
committer | Ruchir Rastogi <ruchirr@google.com> | 2020-04-13 17:46:09 -0700 |
commit | 04d75c37baef052930fe4119796719e843de0f66 (patch) | |
tree | 933c7f34a41ae78d5040f59dafc53ccfb503bde0 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 288c434f34e88881793cff10f9c1c9272e0ef246 (diff) |
ShellSubscriber: install SIGPIPE handler
Install a handler that ignores SIGPIPE. Before this, SIGPIPE was not
being handled, which caused a SIGKILL to be sent to statsd. Note that
even if SIGPIPE is handled, writes to closed pipes will return EPIPE.
Bug: 153595161
Test: procedure specified in b/153595161
1. cat statsd config | adb shell cmd stats data-subscribe
2. Terminate the shell command
3. cat statsd config | adb shell cmd stats data-subscribe
Change-Id: Ib5e679ccd7cdf7182452466b316488439871db99
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions