From: tfheen Date: Wed, 28 Jan 2009 14:40:37 +0000 (+0000) Subject: Merge r3488: X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ed11d21a353567b379a85660e6d9b5c1a356f13;p=varnish Merge r3488: Assert fcntl(2) have not failed. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/branches/2.0@3562 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_acceptor_kqueue.c b/varnish-cache/bin/varnishd/cache_acceptor_kqueue.c index 3cf319b9..f0b36a94 100644 --- a/varnish-cache/bin/varnishd/cache_acceptor_kqueue.c +++ b/varnish-cache/bin/varnishd/cache_acceptor_kqueue.c @@ -209,8 +209,10 @@ vca_kqueue_init(void) 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)); }