Skip to content

Commit

Permalink
storaged: ignore SIGPIPE
Browse files Browse the repository at this point in the history
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
Merged-In: I633780ed20908be02e5e1dea9504e140932afc8c
Change-Id: I633780ed20908be02e5e1dea9504e140932afc8c
(cherry picked from commit 3f3b1708d9539c2d057555deb132f82fb0d29176)

Former-commit-id: 7e47915755ad997a5a2a049935207f2b548a2a84
  • Loading branch information
Tom Cherry committed Mar 18, 2020
1 parent 9397f03 commit c8be5cd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions storaged/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 (;;) {
Expand Down

0 comments on commit c8be5cd

Please sign in to comment.