diff options
author | Alexey Tarasov <tarasov@dodologics.com> | 2009-12-03 11:26:22 +1000 |
---|---|---|
committer | Alexey Tarasov <tarasov@dodologics.com> | 2009-12-03 11:37:22 +1000 |
commit | c22da7ed32f8b537b8e4653fd777056e8315ebdf (patch) | |
tree | 9505f7cf6c5329d3f6c80f928b7b84dd5e3c2db2 /libc/bionic | |
parent | 95604529ec25fe7923ba88312c590f38aa5e3d9e (diff) | |
download | bionic-c22da7ed32f8b537b8e4653fd777056e8315ebdf.zip bionic-c22da7ed32f8b537b8e4653fd777056e8315ebdf.tar.gz bionic-c22da7ed32f8b537b8e4653fd777056e8315ebdf.tar.bz2 |
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/bionic')
-rw-r--r-- | libc/bionic/logd_write.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/bionic/logd_write.c b/libc/bionic/logd_write.c index 3336428..39f0258 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); |