Use kqueue on macintosh
This commit is contained in:
parent
d5ee777af2
commit
409020a67d
@ -86,10 +86,12 @@ end
|
||||
if $0 == __FILE__
|
||||
#require DIR + '/../lib/ebb'
|
||||
require 'rubygems'
|
||||
require 'rack'
|
||||
require 'thin'
|
||||
require 'ebb'
|
||||
# require 'rack'
|
||||
# Rack::Handler::Mongrel.run(SimpleApp.new, :Port => 8000)
|
||||
|
||||
require 'thin'
|
||||
Thin::Server.start("0.0.0.0", 8000, SimpleApp.new)
|
||||
|
||||
# require 'ebb'
|
||||
# Ebb::start_server(SimpleApp.new, :port => 8000)
|
||||
end
|
||||
|
@ -1240,10 +1240,12 @@ int main(int argc, char *argv[]) {
|
||||
evcom_ignore_sigpipe();
|
||||
|
||||
// Initialize the default ev loop.
|
||||
#ifdef __sun
|
||||
#if defined(__sun)
|
||||
// TODO(Ryan) I'm experiencing abnormally high load using Solaris's
|
||||
// EVBACKEND_PORT. Temporarally forcing select() until I debug.
|
||||
ev_default_loop(EVBACKEND_SELECT);
|
||||
#elif defined(__APPLE__)
|
||||
ev_default_loop(EVBACKEND_KQUEUE);
|
||||
#else
|
||||
ev_default_loop(EVFLAG_AUTO);
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user