Project

General

Profile

« Previous | Next » 

Revision fd50c2ee

Added by shirosaki over 6 years ago

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/trunk@60055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e