superclass=SignalException
type=class
library=_builtin
extended=
included=

SIGINT ʥªƤʤȤ
SIGINT ʥȯޤ
SIGINT ʳΥʥȤȯ㳰ˤĤƤ
[[c:SignalException]] 򻲾ȤƤ



  =begin
  #SIGINT­
  Signal.trap('INT'){
    print "\nINT­\n"
    exit 1
  }
  =end

  begin
    begin
      print "z"
      $stdout.flush
      sleep(1)
    end while true
  rescue Interrupt
    print "!!\n"
    exit 1
  end
