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

Commit d7a90ca5 authored by Elliott Hughes's avatar Elliott Hughes
Browse files

The VM handles blocking SIGPIPE.

We don't need this any more.

Bug: 10211309

(cherry picked from commit 437e7620)

Change-Id: I97b3ab4f65a70eacca2fbe95cfb11b1cc85c4021
parent 435e7dfd
Loading
Loading
Loading
Loading
+0 −15
Original line number Diff line number Diff line
@@ -371,19 +371,6 @@ static int hasDir(const char* dir)
    return 0;
}

/*
 * We just want failed write() calls to just return with an error.
 */
static void blockSigpipe()
{
    sigset_t mask;

    sigemptyset(&mask);
    sigaddset(&mask, SIGPIPE);
    if (sigprocmask(SIG_BLOCK, &mask, NULL) != 0)
        ALOGW("WARNING: SIGPIPE not blocked\n");
}

/*
 * Read the persistent locale.
 */
@@ -820,8 +807,6 @@ void AndroidRuntime::start(const char* className, const char* options)
    ALOGD("\n>>>>>> AndroidRuntime START %s <<<<<<\n",
            className != NULL ? className : "(unknown)");

    blockSigpipe();

    /*
     * 'startSystemServer == true' means runtime is obsolete and not run from
     * init.rc anymore, so we print out the boot start event here.