From: "nagachika (Tomoyuki Chikanaga)" Date: 2013-10-10T01:12:26+09:00 Subject: [ruby-core:57788] [ruby-trunk - Bug #8768] [PATCH] tempfile: undefine finalizer on unlink Issue #8768 has been updated by nagachika (Tomoyuki Chikanaga). Backport changed from 1.9.3: REQUIRED, 2.0.0: REQUIRED to 1.9.3: REQUIRED, 2.0.0: DONE backport r43110 and r43155 to ruby_2_0_0 at r43229. ---------------------------------------- Bug #8768: [PATCH] tempfile: undefine finalizer on unlink https://bugs.ruby-lang.org/issues/8768#change-42395 Author: normalperson (Eric Wong) Status: Closed Priority: Normal Assignee: nobu (Nobuyoshi Nakada) Category: lib Target version: current: 2.1.0 ruby -v: ruby 2.1.0dev (2013-08-10 trunk 42491) [x86_64-linux] Backport: 1.9.3: REQUIRED, 2.0.0: DONE * lib/tempfile.rb (Tempfile#unlink): undefine finalizer running the finalizer on an unlinked Tempfile leads to a confusing "removing ...done" message when using --debug. We can rely on normal GC to close. rb_io_fptr_finalize will take care of closing the descriptor without the extra finalizer for Tempfile. -- http://bugs.ruby-lang.org/