projects
/
platform
/
core
/
system
/
dlog.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3ae25f
)
Fix a deadlock
64/92364/2
author
Michal Bloch
<m.bloch@samsung.com>
Fri, 14 Oct 2016 16:31:27 +0000
(18:31 +0200)
committer
Karol Lewandowski
<k.lewandowsk@samsung.com>
Mon, 17 Oct 2016 09:09:36 +0000
(
02:09
-0700)
Change-Id: I606ebf58c071be4974be58933799d1aadc214342
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
src/libdlog/log_pipe.c
patch
|
blob
|
history
diff --git
a/src/libdlog/log_pipe.c
b/src/libdlog/log_pipe.c
index
e6fe14b
..
022a628
100644
(file)
--- a/
src/libdlog/log_pipe.c
+++ b/
src/libdlog/log_pipe.c
@@
-69,8
+69,10
@@
static int __reconnect_pipe(log_id_t log_id)
pthread_mutex_lock(&log_init_lock);
new_fd = connect_pipe(log_pipe_path[log_id]);
- if (new_fd < 0)
+ if (new_fd < 0) {
+ pthread_mutex_unlock(&log_init_lock);
return 0;
+ }
old_fd = pipe_fd[log_id];
if (old_fd < 0)