From: Park Heesob Date: 2002-08-25T17:01:29+09:00 Subject: Re: thread control Hi, wrote in message news:200208242349.g7ONnYP24335@sharui.nakada.kanuma.tochigi.jp... > Hi, > > At Wed, 21 Aug 2002 16:12:19 +0900, > Park Heesob wrote: > > > > threads.each { |t| > > > > TerminateProcess.Call(OpenProcess.Call(1,0,t['pid']),0) if t.alive? > > > > } > > > > > > This wouldn't work in 1.7 under Windows 9x, since pid is > > > negated. Use Process.kill instead, it does same thing and > > > error checks, and is even portable. > > > > > > Process.kill(:INT, *threads.collect {|t| t['pid']}) > > > > > > > Thanks, but it fails with Errno::E087 in Windows XP. > > Apparently, there're some bugs. What's your ruby version and > release date? > D:\work>ruby -v ruby 1.7.2 (2002-07-02) [i386-mswin32] > -- > Nobu Nakada > Park Heesob