diff options
author | Glenn Kasten <gkasten@google.com> | 2012-10-17 12:16:50 -0700 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2012-11-06 09:28:55 -0800 |
commit | 1c6833afd6cfdbc6c696ed0719ceedc37ec0b534 (patch) | |
tree | 48362f445e0d1ad7c0e2fa3b7c3d1cdeb2fcfee7 /media/mediaserver | |
parent | 96076964863ee6887f0bed9d0f11f424b48ab9b9 (diff) | |
download | frameworks_av-1c6833afd6cfdbc6c696ed0719ceedc37ec0b534.zip frameworks_av-1c6833afd6cfdbc6c696ed0719ceedc37ec0b534.tar.gz frameworks_av-1c6833afd6cfdbc6c696ed0719ceedc37ec0b534.tar.bz2 |
Ignore SIGPIPE during write() to broken pipe
This happens occasionally when taking a bugreport.
Bug: 6447319
Change-Id: Ia6531a4a3658461f8fd3f7106e7996da7cc5933a
Diffstat (limited to 'media/mediaserver')
-rw-r--r-- | media/mediaserver/main_mediaserver.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/media/mediaserver/main_mediaserver.cpp b/media/mediaserver/main_mediaserver.cpp index 6b1abb1..ddd5b84 100644 --- a/media/mediaserver/main_mediaserver.cpp +++ b/media/mediaserver/main_mediaserver.cpp @@ -33,6 +33,7 @@ using namespace android; int main(int argc, char** argv) { + signal(SIGPIPE, SIG_IGN); sp<ProcessState> proc(ProcessState::self()); sp<IServiceManager> sm = defaultServiceManager(); ALOGI("ServiceManager: %p", sm.get()); |