From: gabriele renzi Date: 2003-09-20T05:19:49+09:00 Subject: Re: fork not available? il Sat, 20 Sep 2003 03:22:57 +0900, "Berger, Daniel" ha scritto:: >> -----Original Message----- >> From: Austin Ziegler [mailto:austin@halostatue.ca] >> Sent: Friday, September 19, 2003 12:10 PM >> To: ruby-talk@ruby-lang.org >> Subject: Re: fork not available? >> >> >> On Sat, 20 Sep 2003 02:26:15 +0900, walter@mwsewall.com wrote: >> > Ok so I sent this out a bit too early. >> > >> > >> > after looking in the archives some more I see that fork and >> popen("- >> > ") do not work with Windows. I see ri does mention that >> IO.popen is >> > Not available on all platforms, but it does not mention this for >> > Kernel.fork. > >I'd like to see fork() emulated someday in Ruby on Win32. Here's a link >from the ActiveState web site that explains how they emulated fork in their >Perl distro: > my 2c: actually, I think most of the fork() usage is related to two use case: 1) fork()+exec() 2) fork() and subtask I think the first problem could be addressed by a Process.spawn() method, that can be easyli emulated on windows with a createThread()+createProcess() The second.. well, someway I think it could be 'translated' in one like the first, even if little hackish, anyway fixing #1 would be a good add to ruby, imo.