commit | 3f1d554b2518653f59443c2660d3ac0f517cb660 | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Thu Jun 17 22:13:56 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Jun 17 22:13:56 2021 +0000 |
tree | 7f9574b3ed04c57ebb5ba5ebf2a7e4352c2640e2 | |
parent | 991a680dfade779f8d2f554abfa587117ed2a8db [diff] | |
parent | 6d6ddd73ee61d4bfd2c9d65d417b87592e7b8257 [diff] |
Merge "audio: Ignore SIGPIPE in the default audio HAL wrapper" am: 6d6ddd73ee Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1740273 Change-Id: Iccc84cd5bdfdafca7ed405e015076886f7b0d0d5
diff --git a/audio/common/all-versions/default/service/service.cpp b/audio/common/all-versions/default/service/service.cpp index bbc14ad..898c22d 100644 --- a/audio/common/all-versions/default/service/service.cpp +++ b/audio/common/all-versions/default/service/service.cpp
@@ -16,6 +16,7 @@ #define LOG_TAG "audiohalservice" +#include <signal.h> #include <string> #include <vector> @@ -45,6 +46,8 @@ } int main(int /* argc */, char* /* argv */ []) { + signal(SIGPIPE, SIG_IGN); + ::android::ProcessState::initWithDriver("/dev/vndbinder"); // start a threadpool for vndbinder interactions ::android::ProcessState::self()->startThreadPool();