aboutsummaryrefslogtreecommitdiffstats
path: root/linker/debugger.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linker/debugger.cpp')
-rw-r--r--linker/debugger.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/linker/debugger.cpp b/linker/debugger.cpp
index 6565985b5..ac466a5b4 100644
--- a/linker/debugger.cpp
+++ b/linker/debugger.cpp
@@ -215,7 +215,7 @@ static void send_debuggerd_packet(siginfo_t* info) {
return;
}
- int s = socket_abstract_client(DEBUGGER_SOCKET_NAME, SOCK_STREAM);
+ int s = socket_abstract_client(DEBUGGER_SOCKET_NAME, SOCK_STREAM | SOCK_CLOEXEC);
if (s == -1) {
__libc_format_log(ANDROID_LOG_FATAL, "libc", "Unable to open connection to debuggerd: %s",
strerror(errno));