r3562 - branches/2.0/varnish-cache/bin/varnishd

tfheen at projects.linpro.no tfheen at projects.linpro.no
Wed Jan 28 15:40:37 CET 2009


Author: tfheen
Date: 2009-01-28 15:40:37 +0100 (Wed, 28 Jan 2009)
New Revision: 3562

Modified:
   branches/2.0/varnish-cache/bin/varnishd/cache_acceptor_kqueue.c
Log:
Merge r3488:

Assert fcntl(2) have not failed.



Modified: branches/2.0/varnish-cache/bin/varnishd/cache_acceptor_kqueue.c
===================================================================
--- branches/2.0/varnish-cache/bin/varnishd/cache_acceptor_kqueue.c	2009-01-28 14:32:57 UTC (rev 3561)
+++ branches/2.0/varnish-cache/bin/varnishd/cache_acceptor_kqueue.c	2009-01-28 14:40:37 UTC (rev 3562)
@@ -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