| commit | 1159b18177c7247884d7c90c11abfe5aae39cb34 | [log] [tgz] |
|---|---|---|
| author | Elliott Hughes <enh@google.com> | Sat Aug 29 03:37:09 2015 +0000 |
| committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Sat Aug 29 03:37:09 2015 +0000 |
| tree | c6f3452b2f745994e4e49f9021260a2f64485c14 | |
| parent | 2acadb3f26b3f9b7f2ae7c1bca219ada94066462 [diff] | |
| parent | 0944691d68089c17d71641a55192fb2fe755ec92 [diff] |
Merge "ignore SIGPIPE signal in native services"
diff --git a/services/sensorservice/main_sensorservice.cpp b/services/sensorservice/main_sensorservice.cpp index 0a96f42..01bb0e7 100644 --- a/services/sensorservice/main_sensorservice.cpp +++ b/services/sensorservice/main_sensorservice.cpp
@@ -20,6 +20,7 @@ using namespace android; int main(int /*argc*/, char** /*argv*/) { + signal(SIGPIPE, SIG_IGN); SensorService::publishAndJoinThreadPool(); return 0; }
diff --git a/services/surfaceflinger/main_surfaceflinger.cpp b/services/surfaceflinger/main_surfaceflinger.cpp index a74bc4c..ca81aaa 100644 --- a/services/surfaceflinger/main_surfaceflinger.cpp +++ b/services/surfaceflinger/main_surfaceflinger.cpp
@@ -26,6 +26,7 @@ using namespace android; int main(int, char**) { + signal(SIGPIPE, SIG_IGN); // When SF is launched in its own process, limit the number of // binder threads to 4. ProcessState::self()->setThreadPoolMaxThreadCount(4);