From: Roger Pack Date: 2009-12-19T07:06:13+09:00 Subject: Re: Process.waitpid(external pid) >> Anybody know of a way in ruby to #waitpid on a non child process? > > It seems unlikely in general -- waitpid, in POSIX land, really is > specific > to your children. > > Usually, the idiom is to send them signal 0 until it fails. Excellent suggestion. I have created a gem that does just that. $ gem install wait_pid provides you with this ruby code require 'wait_pid' WaitPid.wait_pid 1234 and this binary command $ wait_pid pid_number Works in both windows and linux. Cheers! -r http://github.com/rdp/wait_pid -- Posted via http://www.ruby-forum.com/.