]> err.no Git - varnish/commitdiff
Assert fcntl(2) have not failed.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sun, 21 Dec 2008 18:33:30 +0000 (18:33 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sun, 21 Dec 2008 18:33:30 +0000 (18:33 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3488 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_acceptor_kqueue.c

index 8ffa189477a951a6117f36e657641ea8073f969b..22645e8046aade0e919c4bfa5dca3a8425defb29 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));
 }