From: "Iñaki Baz Castillo" Date: 2008-03-28T06:12:10+09:00 Subject: Re: How to kill a Thread into GServer "def server(io)" method? El Jueves, 27 de Marzo de 2008, Marcelo escribió: > On Thu, Mar 27, 2008 at 11:31 AM, Iñaki Baz Castillo wrote: > > The only way I get it working is doing: > > > > line = io.gets("\n") > > Thread.current.terminate if !line # terminate = kill = exit > > Looking at the code in: > > http://ruby-doc.org/stdlib/libdoc/gserver/rdoc/classes/GServer.html#M000757 > > I think you can just return from the method and be happy. Yes, that's true. A simple return works well :) Thanks. -- Iñaki Baz Castillo