Make the thread detached to avoid zombie thread 14/173914/2 submit/tizen/20180330.014028
authorYoungHun Kim <yh8004.kim@samsung.com>
Mon, 26 Mar 2018 06:06:05 +0000 (15:06 +0900)
committerYoungHun Kim <yh8004.kim@samsung.com>
Thu, 29 Mar 2018 06:48:08 +0000 (15:48 +0900)
Change-Id: I83f07addecb71e80cffb04af01fa33dc01f47666

server/src/muse_server_workqueue.c

index d06a58f..a704f25 100644 (file)
@@ -86,6 +86,10 @@ void ms_workqueue_init(ms_workqueue_t *workqueue)
                        free(worker);
                        return;
                }
+
+               /* Make the thread detached */
+               (void)pthread_detach(worker->thread);
+
                LL_ADD(worker, worker->workqueue->workers);
        }