diff options
| author | Nick Kralevich <nnk@google.com> | 2013-06-19 15:35:36 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-06-19 15:35:36 +0000 |
| commit | e3662ea7069f13264db585f2b2baf4d92afb9fc7 (patch) | |
| tree | 6a37f1e96190cafbed27f539966b1f8f20318fa2 | |
| parent | 389e358017ad15485f2bd9120feebfffa489131b (diff) | |
| parent | 96bcd488c286ebc131e6caf6132b77c66343e5e2 (diff) | |
| download | system_core-e3662ea7069f13264db585f2b2baf4d92afb9fc7.zip system_core-e3662ea7069f13264db585f2b2baf4d92afb9fc7.tar.gz system_core-e3662ea7069f13264db585f2b2baf4d92afb9fc7.tar.bz2 | |
Merge "debuggerd: Ignore SIGPIPE"
| -rw-r--r-- | debuggerd/debuggerd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/debuggerd/debuggerd.c b/debuggerd/debuggerd.c index da2e9b0..0028bda 100644 --- a/debuggerd/debuggerd.c +++ b/debuggerd/debuggerd.c @@ -435,11 +435,13 @@ static int do_server() { signal(SIGBUS, SIG_DFL); signal(SIGFPE, SIG_DFL); signal(SIGSEGV, SIG_DFL); - signal(SIGPIPE, SIG_DFL); #ifdef SIGSTKFLT signal(SIGSTKFLT, SIG_DFL); #endif + // Ignore failed writes to closed sockets + signal(SIGPIPE, SIG_IGN); + logsocket = socket_local_client("logd", ANDROID_SOCKET_NAMESPACE_ABSTRACT, SOCK_DGRAM); if(logsocket < 0) { |
