diff options
author | Elliott Hughes <enh@google.com> | 2013-08-21 13:56:15 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2013-08-21 16:08:29 -0700 |
commit | d7a90ca50c333008857c41118446cfc6b55735f9 (patch) | |
tree | be40e79a7ecf178d93fe8fe3ab9bd9a81f13fc7d /core/jni/AndroidRuntime.cpp | |
parent | 435e7dfd922510bbc081800d0c6092ea52ed9cd1 (diff) | |
download | frameworks_base-d7a90ca50c333008857c41118446cfc6b55735f9.zip frameworks_base-d7a90ca50c333008857c41118446cfc6b55735f9.tar.gz frameworks_base-d7a90ca50c333008857c41118446cfc6b55735f9.tar.bz2 |
The VM handles blocking SIGPIPE.
We don't need this any more.
Bug: 10211309
(cherry picked from commit 437e76208d451e7954699ead8931d0fe147bb07d)
Change-Id: I97b3ab4f65a70eacca2fbe95cfb11b1cc85c4021
Diffstat (limited to 'core/jni/AndroidRuntime.cpp')
-rw-r--r-- | core/jni/AndroidRuntime.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/core/jni/AndroidRuntime.cpp b/core/jni/AndroidRuntime.cpp index 9c323ba..a17b301 100644 --- a/core/jni/AndroidRuntime.cpp +++ b/core/jni/AndroidRuntime.cpp @@ -372,19 +372,6 @@ static int hasDir(const char* dir) } /* - * 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. */ static void readLocale(char* language, char* region) @@ -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. |