[master] 77dd6bc Disable all waiters but the 'poll' waiter.

Poul-Henning Kamp phk at FreeBSD.org
Thu May 21 18:48:51 CEST 2015


commit 77dd6bc31d4da5db226b09378d97bc9a2d07301a
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Tue May 19 09:35:04 2015 +0000

    Disable all waiters but the 'poll' waiter.
    
    Don't worry, they'll will come back later.

diff --git a/bin/varnishd/waiter/cache_waiter_epoll.c b/bin/varnishd/waiter/cache_waiter_epoll.c
index f1e8bd9..2e85b87 100644
--- a/bin/varnishd/waiter/cache_waiter_epoll.c
+++ b/bin/varnishd/waiter/cache_waiter_epoll.c
@@ -31,6 +31,7 @@
  * write the session pointer to a pipe which the event engine monitors.
  */
 
+#if 0
 #include "config.h"
 
 #if defined(HAVE_EPOLL_CTL)
@@ -165,3 +166,4 @@ const struct waiter_impl waiter_epoll = {
 };
 
 #endif /* defined(HAVE_EPOLL_CTL) */
+#endif
diff --git a/bin/varnishd/waiter/cache_waiter_kqueue.c b/bin/varnishd/waiter/cache_waiter_kqueue.c
index 8985c1a..c28b2de 100644
--- a/bin/varnishd/waiter/cache_waiter_kqueue.c
+++ b/bin/varnishd/waiter/cache_waiter_kqueue.c
@@ -31,6 +31,7 @@
  * write the session pointer to a pipe which the event engine monitors.
  */
 
+#if 0
 #include "config.h"
 
 #if defined(HAVE_KQUEUE)
@@ -214,3 +215,4 @@ const struct waiter_impl waiter_kqueue = {
 };
 
 #endif /* defined(HAVE_KQUEUE) */
+#endif
diff --git a/bin/varnishd/waiter/cache_waiter_ports.c b/bin/varnishd/waiter/cache_waiter_ports.c
index 64aa094..a41c8fa 100644
--- a/bin/varnishd/waiter/cache_waiter_ports.c
+++ b/bin/varnishd/waiter/cache_waiter_ports.c
@@ -29,6 +29,7 @@
  *
  */
 
+#if 0
 #include "config.h"
 
 #if defined(HAVE_PORT_CREATE)
@@ -291,3 +292,4 @@ const struct waiter_impl waiter_ports = {
 };
 
 #endif /* defined(HAVE_PORT_CREATE) */
+#endif
diff --git a/bin/varnishd/waiter/mgt_waiter.c b/bin/varnishd/waiter/mgt_waiter.c
index 18e370c..a97425a 100644
--- a/bin/varnishd/waiter/mgt_waiter.c
+++ b/bin/varnishd/waiter/mgt_waiter.c
@@ -39,6 +39,7 @@
 #include "waiter/waiter_priv.h"
 
 static const struct waiter_impl *const waiter_impls[] = {
+#if 0
     #if defined(HAVE_KQUEUE)
 	&waiter_kqueue,
     #endif
@@ -48,6 +49,7 @@ static const struct waiter_impl *const waiter_impls[] = {
     #if defined(HAVE_PORT_CREATE)
 	&waiter_ports,
     #endif
+#endif
 	&waiter_poll,
 	NULL,
 };



More information about the varnish-commit mailing list