From 559edfb1fbf18e9496a4235831fd49c5b0d8b459 Mon Sep 17 00:00:00 2001 From: normalperson Date: Sat, 8 Nov 2008 02:14:43 +0000 Subject: require 'fcntl' for the Fcntl::FD_CLOEXEC flag Patch by Jos Backus: > /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:94:in > `initialize': uninitialized constant > Mongrel::HttpServer::Fcntl (NameError) > > That code doesn't have the defined? test. But even if it did, > it wouldn't work as `fcntl' hadn't been require'd so the > Fcntl::FD_CLOEXEC constant couldn't be available until it was > (if it was available). > > So the right thing to do is to also apply this patch which > explicitly require's `fcntl': This is a followup to r1036 git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@1037 19e92222-5c0b-0410-8929-a290d50e31e9 --- lib/mongrel.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/mongrel.rb b/lib/mongrel.rb index 8d815cc..f09a617 100644 --- a/lib/mongrel.rb +++ b/lib/mongrel.rb @@ -7,6 +7,7 @@ require 'time' require 'etc' require 'uri' require 'stringio' +require 'fcntl' # Compiled Mongrel extension require 'http11' -- cgit v1.2.3-24-ge0c7