diff options
author | Elliott Hughes <enh@google.com> | 2013-08-21 13:56:15 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2013-08-21 13:56:15 -0700 |
commit | 437e76208d451e7954699ead8931d0fe147bb07d (patch) | |
tree | 1aa7d9da38d98d87727137e5324ee93454022a0e | |
parent | ecdf20d4fec6107ee49e315cff3dc73f65569843 (diff) | |
download | base-437e76208d451e7954699ead8931d0fe147bb07d.tar.gz |
The VM handles blocking SIGPIPE.
We don't need this any more.
Bug: 10211309
Change-Id: I8be0071d50296974e3861f8af9d2bae4f5678d5a
-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 ca658dab3814..cc58c65736f6 100644 --- a/core/jni/AndroidRuntime.cpp +++ b/core/jni/AndroidRuntime.cpp @@ -371,19 +371,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) @@ -804,8 +791,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. |