From: Francis Cianfrocca Date: 2006-06-09T11:40:17+09:00 Subject: Re: [ANN] slave-0.0.1 ------=_Part_39328_15976558.1149820809520 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Cloexec doesn't exist on Windows. It would be meaningless anyway, because there's no notion of a fork. In effect, everything is cloexec. On 6/8/06, ara.t.howard@noaa.gov wrote: > > 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 > > ------=_Part_39328_15976558.1149820809520--