Merge branch 'master' of https://fuchsia.googlesource.com/third_party/openssh-portable into merge-i
Change-Id: I98fe3f288fde5baf38478869aecc6ec42baa9713
diff --git a/fuchsia/fuchsia-compat.c b/fuchsia/fuchsia-compat.c
index 02635b1..da699d9 100644
--- a/fuchsia/fuchsia-compat.c
+++ b/fuchsia/fuchsia-compat.c
@@ -84,6 +84,8 @@
static volatile mysig_t sigchld_handler = SIG_IGN;
static void* wait_thread_func(void* voidp) {
+ pthread_detach(pthread_self());
+
Child* child = voidp;
zx_signals_t observed;
@@ -135,6 +137,8 @@
// A thread that processes output.
// Currently just nothing but shuffle bytes.
static void* process_input_thread_func(void* voidp) {
+ pthread_detach(pthread_self());
+
int* fds = voidp;
char buf[128];
@@ -196,6 +200,8 @@
// A thread that processes output.
// Currently just does \n -> \r\n translation.
static void* process_output_thread_func(void* voidp) {
+ pthread_detach(pthread_self());
+
int* fds = voidp;
char buf[128];