> > This has been working for me with various builds of Ruby 1.8.7: > > if RUBY_PLATFORM.match(/i386-mswin32/) != nil || > RUBY_PLATFORM.match(/i386-mingw32/) != nil || > RUBY_PLATFORM.match(/cygwin/) != nil > @socket.fcntl(Fcntl::F_SETFL, Fcntl::O_NONBLOCK) > else > @socket.fcntl(Fcntl::F_SETFD, Fcntl::FD_CLOEXEC) > end > > >> Anyways, commenting that one line renders a gem that seems to work for > >> me for development purposes in windows. >
The FD_CLOEXEC flag is part of the POSIX API, which Windows doesn't support, but it does provide analogous functionality. See http://www.perlmonks.org/index.pl?node_id=574349 You can implement a patch with https://github.com/jarib/childprocess/ which appears to provide a consistent facade. See http://rubydoc.info/github/jarib/childprocess/master/ChildProcess#close_on_exec-class_method Cheers, Jon -- You received this message because you are subscribed to the Google Groups "beanstalk-talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/beanstalk-talk?hl=en.
