search for: inherit_listeners

Displaying 2 results from an estimated 2 matches for "inherit_listeners".

2013 Aug 23
5
Ruby 2.0 Bad file descriptor (Errno::EBADF)
...2.0 but keep getting this on ubuntu (not on my local os x): /hello/shared/bundle/ruby/2.0.0/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:746:in `for_fd'': Bad file descriptor (Errno::EBADF) from /hello/shared/bundle/ruby/2.0.0/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:746:in `block in inherit_listeners!'' from /hello/shared/bundle/ruby/2.0.0/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:745:in `map'' from /hello/shared/bundle/ruby/2.0.0/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:745:in `inherit_listeners!'' from /hello/shared/bundle/ruby/2.0.0/gems/unicorn-4.6.3/lib/uni...
2013 Dec 09
2
[PATCH] rework master-to-worker signaling to use a pipe
...rare) signal arrives in the worker and reinitialize the pipe later. + # * The workers immediately close the pipe they inherit. See the + # Unicorn::Worker class for the pipe workers use. SELF_PIPE = [] # signal queue used for self-piping @@ -127,7 +119,7 @@ class Unicorn::HttpServer inherit_listeners! # this pipe is used to wake us up from select(2) in #join when signals # are trapped. See trap_deferred. - init_self_pipe! + SELF_PIPE.replace(Unicorn.pipe) # setup signal handlers before writing pid file in case people get # trigger happy and send signals as soon as t...