From: YANAGAWA Kazuhisa Date: 2004-08-12T08:17:54+09:00 Subject: Re: Thread takeover In Message-Id: "Andre'" writes: > But if I add the line "m = Main.new" at the end of 'p.rb', the thread > seems to take over! (22222222222222222222222222222222222) On require, Ruby stops thread scheduling and probably GC until the end of require. So, that's normal. > Since this 'p.rb' is some external file the users will input, I can't > tell what it'll be on it, so I can't avoid that a malicious code > takes over my program! Or can I? If p.rb is a personal config file, whatever occurred is writers sake :-) If p.rb is required by several people or distributed via network, better not just require it and develop more secure and robust scheme. -- kjana@dm4lab.to August 12, 2004 A man is known by the company he keeps.