]> granicus.if.org Git - libevent/commit
Valgrind fix: Clear struct kevent before checking for OSX bug.
authorWilliam Ahern <william@25thandClement.com>
Sun, 29 Nov 2009 15:20:46 +0000 (10:20 -0500)
committerNick Mathewson <nickm@torproject.org>
Sun, 29 Nov 2009 15:20:46 +0000 (10:20 -0500)
commit56771a3eedb8c5ef55d67a707be91b1906e5a45b
tree24cab83fa0ea97745737efb9b55684a3feeb997b
parent0cd3bb9f3a53cce9a64ce1536d6e171848e8da59
Valgrind fix: Clear struct kevent before checking for OSX bug.

William's original commit message:

   Valgrind complains on startup because kq_init passes to kevent only
   a partially initialized structure. The code doesn't expect kevent
   to look at .fflags, .udata, or .data, I suppose, because it merely
   tickles the kernel looking for an error response. But perhaps
   that's unwarranted chuminess (notwithstanding that it's checking
   for an OS X bug), and needless noise nonetheless.
kqueue.c