]> err.no Git - varnish/commitdiff
Merge r3488:
authortfheen <tfheen@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 28 Jan 2009 14:40:37 +0000 (14:40 +0000)
committertfheen <tfheen@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 28 Jan 2009 14:40:37 +0000 (14:40 +0000)
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

varnish-cache/bin/varnishd/cache_acceptor_kqueue.c

index 3cf319b937356d293687822962b3d8f1563c275a..f0b36a947aa3ea18dfda759e2d90a1d367b2dfac 100644 (file)
@@ -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));
 }