summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--adb/sockets.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/adb/sockets.c b/adb/sockets.c
index 72151b4..91db951 100644
--- a/adb/sockets.c
+++ b/adb/sockets.c
@@ -426,12 +426,14 @@ asocket *create_local_service_socket(const char *name)
s = create_local_socket(fd);
D("LS(%d): bound to '%s' via %d\n", s->id, name, fd);
+#if !ADB_HOST
if ((!strcmp(name, "root:") && getuid() != 0)
|| !strcmp(name, "usb:")
|| !strcmp(name, "tcpip:")) {
D("LS(%d): enabling exit_on_close\n", s->id);
s->exit_on_close = 1;
}
+#endif
return s;
}