unicorn.git  about / heads / tags
Rack HTTP server for Unix and fast clients
blob cb84aab6e3e06a07fda5178ab1be267761f6b2f1 242 bytes (raw)
$ git show v6.1.0:lib/unicorn/select_waiter.rb	# shows this blob on the CLI

1
2
3
4
5
6
 
# fallback for non-Linux and Linux <4.5 systems w/o EPOLLEXCLUSIVE
class Unicorn::SelectWaiter # :nodoc:
  def get_readers(ready, readers, timeout) # :nodoc:
    ret = IO.select(readers, nil, nil, timeout) and ready.replace(ret[0])
  end
end

git clone https://yhbt.net/unicorn.git