[Win32utils-devel] Signal#trap problems
Daniel Berger
djberg96 at gmail.com
Sun Feb 12 07:12:50 EST 2012
Hi all,
This is supposed to work, right? It works on 1.8.7 for me, but not
1.9.2 or 1.9.3:
handle = File.open('trap_test.txt', 'w+')
Signal.trap('ABRT'){ handle.print('hello') }
Process.kill('ABRT', Process.pid)
handle.rewind
p handle.read # => "hello" with 1.8.7, empty string with 1.9.x and JRuby
handle.close
Do I need to submit a bug report?
Regards,
Dan
More information about the win32utils-devel
mailing list