Commit 9ee840cd authored by Marko Mäkelä's avatar Marko Mäkelä

mariabackup: Properly call os_thread_exit() with detach=true

There is no call to os_thread_join(), so we should detach the thread
handles in order to avoid any resource leaks.
parent 0507b094
......@@ -2460,7 +2460,7 @@ static os_thread_ret_t log_copying_thread(void*)
log_copying_running = false;
my_thread_end();
os_thread_exit(NULL);
os_thread_exit();
return(0);
}
......@@ -2483,7 +2483,7 @@ static os_thread_ret_t io_watching_thread(void*)
io_watching_thread_running = false;
os_thread_exit(NULL);
os_thread_exit();
return(0);
}
......@@ -2523,7 +2523,7 @@ data_copy_thread_func(
pthread_mutex_unlock(&ctxt->count_mutex);
my_thread_end();
os_thread_exit(NULL);
os_thread_exit();
OS_THREAD_DUMMY_RETURN;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment