Commit 7d0643bb authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Assert fcntl(2) have not failed.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3488 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent f4647efe
...@@ -209,8 +209,10 @@ vca_kqueue_init(void) ...@@ -209,8 +209,10 @@ vca_kqueue_init(void)
int i; int i;
i = fcntl(vca_pipes[0], F_GETFL); i = fcntl(vca_pipes[0], F_GETFL);
assert(i != -1);
i |= O_NONBLOCK; i |= O_NONBLOCK;
i = fcntl(vca_pipes[0], F_SETFL, i); i = fcntl(vca_pipes[0], F_SETFL, i);
assert(i != -1);
AZ(pthread_create(&vca_kqueue_thread, NULL, vca_kqueue_main, NULL)); AZ(pthread_create(&vca_kqueue_thread, NULL, vca_kqueue_main, NULL));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment