From: Aleksei Guzev Date: 2001-06-30T17:28:07+09:00 Subject: [ruby-talk:17099] Re: ensure block not being executed Then what is MessageQueue? (I haven't foud it at my Ruby sources ) Can it on ctrl+c terminate the process without passing control to Ruby's "atexit" functions? # -----Original Message----- # From: Joseph McDonald [mailto:joe@vpop.net] # Sent: 30 ???? 2001 ?. 10:54 # To: ruby-talk ML # Subject: [ruby-talk:17095] Re: ensure block not being executed # # # # >> I'm afraid You stop not the script but You stop the # interpreter with # >> ^C. Matz, would You change this behaviour? # # DT> Try running this, and trying ^C. # # DT> begin # DT> loop do # DT> sleep 2 # DT> puts "Whee" # DT> end # DT> ensure # DT> puts "Byee" # DT> end # # Yes, that works as I expect. But my example doesn't. Could # it be a bug in sysvipc, or ruby, or is my understanding of # ensure incorrect? # # thanks, # -joe #