Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7e479157 authored by Tom Cherry's avatar Tom Cherry
Browse files

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
Merged-In: I633780ed20908be02e5e1dea9504e140932afc8c
Change-Id: I633780ed20908be02e5e1dea9504e140932afc8c
(cherry picked from commit 3f3b1708)
parent 2bf886af
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -71,6 +71,7 @@ int main(int argc, char** argv) {
    bool flag_dump_perf = false;
    bool flag_dump_perf = false;
    int opt;
    int opt;


    signal(SIGPIPE, SIG_IGN);
    android::base::InitLogging(argv, android::base::LogdLogger(android::base::SYSTEM));
    android::base::InitLogging(argv, android::base::LogdLogger(android::base::SYSTEM));


    for (;;) {
    for (;;) {