From: why the lucky stiff Date: 2003-01-23T03:42:42+09:00 Subject: Re: Question regarding threads and perhaps YAML On Wednesday 22 January 2003 03:05 am, info@irvinehosting.net wrote: > Oh sorry, that should have read: > > The thread completes when the file is an empty file (just a dash), but when > the file has YAML code, the thread just seems to lock at that part of the > code. Could you send me your YAML doc? The parser must be choking on it or something. Here's the thread code I'm using: require 'yaml' loadingthread = Thread.new('CHANGELOG') { |filename| puts "starting thread" mapfile = File.open(filename) puts "opened file" amap = YAML::load(mapfile) puts "generated object" mapfile.close puts "thread all done" } loadingthread.join _why