about summary refs log tree commit homepage
diff options
context:
space:
mode:
authornormalperson <normalperson@19e92222-5c0b-0410-8929-a290d50e31e9>2008-11-08 02:14:43 +0000
committernormalperson <normalperson@19e92222-5c0b-0410-8929-a290d50e31e9>2008-11-08 02:14:43 +0000
commit559edfb1fbf18e9496a4235831fd49c5b0d8b459 (patch)
tree2eaae215b69188cfb3928914384c3d216e00bfcf
parentf935315563751c7afcb2f773372645efa0c9d63d (diff)
downloadunicorn-559edfb1fbf18e9496a4235831fd49c5b0d8b459.tar.gz
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
-rw-r--r--lib/mongrel.rb1
1 files changed, 1 insertions, 0 deletions
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'