summaryrefslogtreecommitdiffstats
path: root/libc
diff options
context:
space:
mode:
authorAlexey Tarasov <tarasov@dodologics.com>2009-12-03 11:26:22 +1000
committerAlexey Tarasov <tarasov@dodologics.com>2009-12-03 11:37:22 +1000
commitc22da7ed32f8b537b8e4653fd777056e8315ebdf (patch)
tree9505f7cf6c5329d3f6c80f928b7b84dd5e3c2db2 /libc
parent95604529ec25fe7923ba88312c590f38aa5e3d9e (diff)
downloadbionic-c22da7ed32f8b537b8e4653fd777056e8315ebdf.tar.gz
bionic-c22da7ed32f8b537b8e4653fd777056e8315ebdf.tar.bz2
bionic-c22da7ed32f8b537b8e4653fd777056e8315ebdf.zip
Fix log channel initialization at bionic/logd_write.c.
log_channel_t contains fd member, which is file descriptor for exact logging channel. change cc05d1271680d6a7804bc89d3b1fe14c40b32396 lacks initialization of this member in __write_to_log_init(), thus logging code is not working, although not crashable. Additional details may be found in comments here: http://review.source.android.com/5617
Diffstat (limited to 'libc')
-rw-r--r--libc/bionic/logd_write.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/bionic/logd_write.c b/libc/bionic/logd_write.c
index 333642875..39f02588e 100644
--- a/libc/bionic/logd_write.c
+++ b/libc/bionic/logd_write.c
@@ -113,6 +113,8 @@ static int __write_to_log_init(log_id_t log_id, struct iovec *vec)
log_channels[log_id].logger =
(fd < 0) ? __write_to_log_null : __write_to_log_kernel;
+ log_channels[log_id].fd = fd;
+
pthread_mutex_unlock(&log_init_lock);
return log_channels[log_id].logger(log_id, vec);