From: ara.t.howard@... Date: 2006-06-09T09:58:24+09:00 Subject: Re: [ANN] slave-0.0.1 On Fri, 9 Jun 2006, Justin Bailey wrote: hi justin- > I am trying to use your package on Windows. I'm running into an issue at > line 341 of slave.rb: > > @pipe.fcntl Fcntl::F_SETFD, Fcntl::FD_CLOEXEC > > I'm curious what these flags mean and what their equivalent on Windows might > be (if any). it means that, should the parent do something like exec 'another_program.exe' the pipe will be closed. it's important since pids are recycled and pipes transfered the slave would live on for while - perhaps indefinitely. of course it's possible that behaviour is desireable, but then a zombie would also be created... anyhow, for hacking it's safe to comment that out. > I already solved a couple of issues (well, hacked around them): > > 1) No fork() on windows. Solved by installing Daniel Berger's win32-process > gem > 2) "drbunix" URI fails on non-unix. Solved by passing nil to > Drb.start_service (ugly hack, hoping to make it cleaner later) this could easily be configured - check out how the other stuff is configured and do something like allow the ENV var 'SLAVE_DRB_PROTOCOL' to override this... perhaps a better option might be Drb.start_server 'drb://localhost.localdomain:0' note that 'nil' here doesn't work on macs for some reason... i'm running out the door now, but i'd love to make this work on windows - just for the challenge. maybe dan can lend a hand? ;-) maybe we can work together and make another release that's portable. ping me offline if your're interested. cheers. -a -- suffering increases your inner strength. also, the wishing for suffering makes the suffering disappear. - h.h. the 14th dali lama