2011/11/23 Brian Candler <b.candler / pobox.com>: > Bug #5664: Webrick broken FD_CLOEXEC > http://redmine.ruby-lang.org/issues/5664 > ./lib/drb/unix.rb: soc.fcntl(Fcntl::F_SETFL, Fcntl::FD_CLOEXEC) if defined? Fcntl::FD_CLOEXEC > ./lib/webrick/utils.rb: io.fcntl(Fcntl::FD_CLOEXEC, 1) > > There you can see lots of examples of FD_CLOEXEC being used correctly: fcntl (command F_SETFD, value FD_CLOEXEC) > > But in the last line, Webrick is calling fcntl wrongly: it is calling command FD_CLOEXEC with value 1 !! So what it's actually calling is command F_GETFD, which does nothing. I fixed them (not only webrick/utils.rb but also drb/unix.rb) at r33611 for trunk and 1.8 branch. It seems not backported yet. -- Tanaka Akira