Use default backend for __sun (event ports)
authorRyan Dahl <ry@tinyclouds.org>
Thu, 24 Feb 2011 01:04:14 +0000 (17:04 -0800)
committerRyan Dahl <ry@tinyclouds.org>
Fri, 11 Mar 2011 03:04:25 +0000 (03:04 +0000)
src/node.cc

index 884c4a4..5f25cf2 100644 (file)
@@ -2277,11 +2277,7 @@ int Start(int argc, char *argv[]) {
 #endif // __MINGW32__
 
   // Initialize the default ev loop.
-#if defined(__sun)
-  // TODO(Ryan) I'm experiencing abnormally high load using Solaris's
-  // EVBACKEND_PORT. Temporarally forcing poll().
-  ev_default_loop(EVBACKEND_POLL);
-#elif defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1060
+#if defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1060
   ev_default_loop(EVBACKEND_KQUEUE);
 #else
   ev_default_loop(EVFLAG_AUTO);