diff options
-rw-r--r-- | lib/unicorn.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/unicorn.rb b/lib/unicorn.rb index e0dd4ef..aac530b 100644 --- a/lib/unicorn.rb +++ b/lib/unicorn.rb @@ -436,6 +436,7 @@ module Unicorn # once a client is accepted, it is processed in its entirety here # in 3 easy steps: read request, call app, write app response def process_client(app, client) + client.fcntl(Fcntl::F_SETFD, Fcntl::FD_CLOEXEC) HttpResponse.write(client, app.call(REQUEST.read(client))) # if we get any error, try to write something back to the client # assuming we haven't closed the socket, but don't get hung up |