storaged: ignore SIGPIPE
It is possible for storaged to terminate due to SIGPIPE if its clients have terminated. This is not a fatal condition from storaged's perspective, so we ignore SIGPIPE instead. Bug: 151581751 Test: build Change-Id: I633780ed20908be02e5e1dea9504e140932afc8c
This commit is contained in:
parent
cb76bf0558
commit
3f3b1708d9
1 changed files with 1 additions and 0 deletions
|
@ -71,6 +71,7 @@ int main(int argc, char** argv) {
|
|||
bool flag_dump_perf = false;
|
||||
int opt;
|
||||
|
||||
signal(SIGPIPE, SIG_IGN);
|
||||
android::base::InitLogging(argv, android::base::LogdLogger(android::base::SYSTEM));
|
||||
|
||||
for (;;) {
|
||||
|
|
Loading…
Reference in a new issue