r3488 - trunk/varnish-cache/bin/varnishd
phk at projects.linpro.no
phk at projects.linpro.no
Sun Dec 21 19:33:31 CET 2008
Author: phk
Date: 2008-12-21 19:33:30 +0100 (Sun, 21 Dec 2008)
New Revision: 3488
Modified:
trunk/varnish-cache/bin/varnishd/cache_acceptor_kqueue.c
Log:
Assert fcntl(2) have not failed.
Modified: trunk/varnish-cache/bin/varnishd/cache_acceptor_kqueue.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_acceptor_kqueue.c 2008-12-21 17:46:51 UTC (rev 3487)
+++ trunk/varnish-cache/bin/varnishd/cache_acceptor_kqueue.c 2008-12-21 18:33:30 UTC (rev 3488)
@@ -209,8 +209,10 @@
int i;
i = fcntl(vca_pipes[0], F_GETFL);
+ assert(i != -1);
i |= O_NONBLOCK;
i = fcntl(vca_pipes[0], F_SETFL, i);
+ assert(i != -1);
AZ(pthread_create(&vca_kqueue_thread, NULL, vca_kqueue_main, NULL));
}
More information about the varnish-commit
mailing list