projects
/
platform
/
core
/
system
/
resourced.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5ab485
)
fix zombie thread by detaching to avoid resource leak
51/188051/1
accepted/tizen/unified/20180831.165151
submit/tizen/20180830.162343
author
Ravi Guntur
<ravi.g@samsung.com>
Tue, 20 Mar 2018 05:06:40 +0000
(10:36 +0530)
committer
Łukasz Stelmach
<l.stelmach@samsung.com>
Thu, 30 Aug 2018 16:07:17 +0000
(18:07 +0200)
Signed-off-by: Ravi Guntur <ravi.g@samsung.com>
Change-Id: I8ee2881eb91474ecbddd6b42e1795df3fc5e28ac
src/heart/logging.c
patch
|
blob
|
history
diff --git
a/src/heart/logging.c
b/src/heart/logging.c
index 80c3ea59a054f0dc39117e397dffef2a7b299b9d..bf9134ca84bb77c1428157c1a30dd82b210ffaf2 100644
(file)
--- a/
src/heart/logging.c
+++ b/
src/heart/logging.c
@@
-1419,8
+1419,10
@@
int logging_sync(GDBusMethodInvocation *reply_invocation)
sync_reply_invocation = reply_invocation;
- if (!pthread_create(&logging_sync_thread, NULL, (void *)logging_sync_thread_main, NULL))
+ if (!pthread_create(&logging_sync_thread, NULL, (void *)logging_sync_thread_main, NULL)) {
+ pthread_detach(logging_sync_thread);
return 0;
+ }
_E("Failed to create logging sync thread");
logging_sync_thread = 0;