Project

General

Profile

« Previous | Next » 

Revision 541f4f25

Added by usa (Usaku NAKAMURA) about 6 years ago

merge revision(s) 60055: [Backport #13856]

    io.c: fix segfault with closing socket on Windows

    * io.c (fptr_finalize_flush): add an argument to keep GVL.
    * io.c (fptr_finalize): adjust for above change.
    * io.c (io_close_fptr): closing without GVL causes another
      exception while raising exception in another thread. This causes
      segfault on Windows. Keep GVL while closing when another thread
      raises.
      [Bug #13856] [ruby-core:82602]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@62821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e