Fcntl::F_SETFD (new bug)

Tab-delimited Text

Mongrel project

its listen socket

Ticket #40 josb Assigned to: View Tickets
Settings , port) Help/Guide major
evanweaver Login Timeline
at

Description

that Mongrel, at least in 1.1.4, doesn"t set the listen socket. This leads on trouble in programs to use Mongrel and fork other programs (like puppetmasterd, part of Puppet). For an example, see Please consider applying something like the following patch: on Please consider applying something like the following patch:

http://thebeefcut.org/group/puppet-dev/browse_thread/thread/463f0f8cfc80cc43

 --- lib/mongrel.rb.orig 2008-07-17 17:44:42.000000000 -0400 +++ lib/mongrel.rb      2008-07-17 17:44:53.000000000 -0400 @@ -92,7 +92,9 @@         tries = 0        @socket = TCPServer.new(host, port) +      @socket.fcntl(Fcntl::F_SETFD, Fcntl::FD_CLOEXEC) +        @classifier = URIClassifier.new        @host = host        @port = port the close-on-exec flag 

Trac 0.10.4

storney

#40 (Mongrel doesn't set close-on-exec

--- lib/mongrel.rb.orig 2008-07-17 17:44:42.000000000 -0400 +++ lib/mongrel.rb 2008-07-17 17:44:53.000000000 -0400 @@ -92,7 +92,9 @@

tries = 0 @socket = TCPServer.new( by 11/12/08 06:09:10 changed . Search:

, Fcntl::FD_CLOEXEC) + 1 Download in other formats: Browse Source + @socket.fcntl(

@classifier = URIClassifier.new @host = host @port = port on Mongrel doesn"t set close-on-exec