summaryrefslogtreecommitdiffstats
path: root/libc
diff options
context:
space:
mode:
authorDavid Turner <digit@android.com>2010-05-01 15:31:39 -0700
committerAndroid Code Review <code-review@android.com>2010-05-01 15:31:39 -0700
commit0be7eda75a14815aaa3e5cd5d5d4e5d25dc35d1c (patch)
treee650cc8dd8a90d8d424f9035798c5f77b9172b22 /libc
parent716e06071a93d2c8dfbde99ea1dfcb7d2cf93d70 (diff)
parentc22da7ed32f8b537b8e4653fd777056e8315ebdf (diff)
downloadbionic-0be7eda75a14815aaa3e5cd5d5d4e5d25dc35d1c.zip
bionic-0be7eda75a14815aaa3e5cd5d5d4e5d25dc35d1c.tar.gz
bionic-0be7eda75a14815aaa3e5cd5d5d4e5d25dc35d1c.tar.bz2
Merge "Fix log channel initialization at bionic/logd_write.c."
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 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);