summaryrefslogtreecommitdiff
path: root/debuggerd
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2016-02-19 10:41:17 -0800
committerJosh Gao <jmgao@google.com>2016-03-17 13:10:58 -0700
commitaa4175685157c59c1f88e2f7a7ee651e53932b49 (patch)
tree7f55ce9f3c595af4fdb0139e484947a5bef766a9 /debuggerd
parenteb43104db148976581c6525b12b1abf25f65987b (diff)
Remove dead code from debuggerd.
system/core/debuggerd/debuggerd.cpp:683:5: warning: Value stored to 'logsocket' is never read logsocket = -1; ^ ~~ Bug: http://b/27264392 Change-Id: I8eab8a02b67f219c32aea49e4d4957e5642df38f (cherry picked from commit 6da1353863dea7ed6835bd776a0cf4a49d12f910)
Diffstat (limited to 'debuggerd')
-rw-r--r--debuggerd/debuggerd.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/debuggerd/debuggerd.cpp b/debuggerd/debuggerd.cpp
index 11bc9f65e..c78698ae3 100644
--- a/debuggerd/debuggerd.cpp
+++ b/debuggerd/debuggerd.cpp
@@ -703,13 +703,6 @@ static int do_server() {
// Ignore failed writes to closed sockets
signal(SIGPIPE, SIG_IGN);
- int logsocket = socket_local_client("logd", ANDROID_SOCKET_NAMESPACE_ABSTRACT, SOCK_DGRAM);
- if (logsocket < 0) {
- logsocket = -1;
- } else {
- fcntl(logsocket, F_SETFD, FD_CLOEXEC);
- }
-
struct sigaction act;
act.sa_handler = SIG_DFL;
sigemptyset(&act.sa_mask);