On Wednesday 10 July 2002 02:53 pm, Bob Alexander wrote:

> The signal handler is invoked, but the wait is not interrupted. If
> Enter is typed in the first shell, the program prints the input and
> terminates (since its IO request is satisfied).

seems to work right with Ruby 1.6.7 under Linux:

$ cat > xx.rb

p Process.pid
begin
    p $stdin.read(1)
rescue => e
    p e
end
$ ruby xx.rb
3195
xx.rb:4:in `read': SIGUSR1 (SignalException)
        from xx.rb:4

-- 
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE