search for: 044edb8a

Displaying 1 result from an estimated 1 matches for "044edb8a".

2012 Feb 12
1
Signal#trap problems
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