am ac26d9db: am 3d86d3b6: am f39abeb4: Merge "The VM handles blocking SIGPIPE."

* commit 'ac26d9db0e10f3c7849bbf78220d55f213ab6e2a':
  The VM handles blocking SIGPIPE.
This commit is contained in:
Elliott Hughes
2013-08-21 15:43:36 -07:00
committed by Android Git Automerger

View File

@@ -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.