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
This commit is contained in:
Treehugger Robot
2021-06-17 22:13:56 +00:00
committed by Automerger Merge Worker

View File

@@ -16,6 +16,7 @@
#define LOG_TAG "audiohalservice"
#include <signal.h>
#include <string>
#include <vector>
@@ -45,6 +46,8 @@ static bool registerPassthroughServiceImplementations(Iter first, Iter last) {
}
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();