diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-10-02 05:20:02 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-10-02 05:20:02 +0000 |
commit | f0d8be4e2bac9d46126bbc43650e3a0e030da252 (patch) | |
tree | 62755414f35a418db75584cfdc381a8ec278ca38 /ChangeLog | |
parent | 145ecb687200b619f58561d33cac420ba91733f3 (diff) | |
download | ruby-f0d8be4e2bac9d46126bbc43650e3a0e030da252.tar.gz |
io.c: get rid of race condition
* io.c (rb_io_close_write): detach tied IO for writing before closing
to get rid of race condition. [ruby-list:49598]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1,4 +1,7 @@ -Wed Oct 2 14:18:56 2013 Nobuyoshi Nakada <nobu@ruby-lang.org> +Wed Oct 2 14:19:57 2013 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * io.c (rb_io_close_write): detach tied IO for writing before closing + to get rid of race condition. [ruby-list:49598] * io.c (rb_io_close_read): keep fptr in write_io to be discarded, to fix freed pointer access when it is in use by other threads, and get |