[ruby-cvs:67236] shirosaki:r60055 (trunk): io.c: fix segfault with closing socket on Windows

shirosaki at ruby-lang.org shirosaki at ruby-lang.org
Thu Sep 28 22:43:22 JST 2017


shirosaki	2017-09-28 22:43:21 +0900 (Thu, 28 Sep 2017)

  New Revision: 60055

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60055

  Log:
    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]

  Modified files:
    trunk/io.c


More information about the ruby-cvs mailing list