Fix kquue correctness test on x84_64

Apparently, in our configure.in check for a working kqueue, we were
leaving some fields unset that seemed to irritate 64-bit kqueue a lot.

Found by Christopher Layne
This commit is contained in:
Nick Mathewson 2010-08-19 09:38:44 -04:00
parent 44f04a2b85
commit 1c25b07ea7

View File

@ -246,6 +246,7 @@ main(int argc, char **argv)
if ((kq = kqueue()) == -1)
exit(1);
memset(&ev, 0, sizeof(ev));
ev.ident = fd[[1]];
ev.filter = EVFILT_WRITE;
ev.flags = EV_ADD | EV_ENABLE;