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

Commit 05f257fe authored by JP Abgrall's avatar JP Abgrall Committed by Android (Google) Code Review
Browse files

Merge "Ignore SIGPIPE is some of the tools used via bugreport" into jb-dev

parents b194ec92 3e03d3fb
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -311,6 +311,8 @@ int main(int argc, char *argv[]) {

    ALOGI("begin\n");

    signal(SIGPIPE, SIG_IGN);

    /* set as high priority, and protect from OOM killer */
    setpriority(PRIO_PROCESS, 0, -20);
    FILE *oom_adj = fopen("/proc/self/oom_adj", "w");
+1 −0
Original line number Diff line number Diff line
@@ -28,6 +28,7 @@ static int sort_func(const String16* lhs, const String16* rhs)

int main(int argc, char* const argv[])
{
    signal(SIGPIPE, SIG_IGN);
    sp<IServiceManager> sm = defaultServiceManager();
    fflush(stdout);
    if (sm == NULL) {