diff options
author | Glenn Kasten <gkasten@google.com> | 2012-10-17 12:16:50 -0700 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2012-10-17 18:15:17 -0700 |
commit | 4e1e73ebe1049538678d0343e4b2e51eb54352f8 (patch) | |
tree | 717818f3dc5bbbf97da2fa8ed47fe8d007dae7f9 /media/mediaserver | |
parent | a799a40491f8fbd3cdc8681bff6f7fac3933db95 (diff) | |
download | frameworks_av-4e1e73ebe1049538678d0343e4b2e51eb54352f8.zip frameworks_av-4e1e73ebe1049538678d0343e4b2e51eb54352f8.tar.gz frameworks_av-4e1e73ebe1049538678d0343e4b2e51eb54352f8.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()); |