kqueue.c


Log

Author Commit Date CI Message
Nick Mathewson 01f3775b 2009-11-21T01:11:49 Fix memory-leak of signal handler array with kqueue. [backport] It turns out that kqueue_dealloc wasn't calling evsig_dealloc() (because it doesn't use the main signal handler logic) so the sh_old array was leaking. This patch also introduces a fix in evsig_dealloc() where we set the sh_old array to NULL when we free it, so that main/fork can pass.
William Ahern 5713d5dd 2009-11-29T10:20:46 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.
Nick Mathewson eb1fa9f7 2009-11-15T18:59:55 When running set[ug]id, don't check the environment. Idea from OpenBSD, but made a bit more generic to handle uncivilized lands that do not define issetugid. svn:r1529
Nick Mathewson e32d055b 2009-11-06T21:23:52 Backport GNU/kfreebsd kqueue fix svn:r1515
Nick Mathewson 6ce14fd0 2009-11-03T19:15:27 Rename compat/sys/_time.h to compat/sys/_libevent_time.h On some systems (notably HPUX), there is already a /usr/include/sys/_time.h, which our sys/_time.h shadows. Found and diagnosed by Kathryn Hogg. This is a quick fix for 1.4 only; for 2.0, I want to eliminate compat/sys/_time.h entirely, and have util-internal subsume it. svn:r1493
Niels Provos 0e535d2f 2008-07-11T15:59:29 from trunk: support multiple events listening on the same signal; make signals regular events that go on the same event queue svn:r902
Niels Provos 459c78a2 2008-07-11T15:17:35 from trunk: fix a bug where deleting signals with kqueue would delete subsequent adds svn:r900
Niels Provos 0690f0f5 2008-06-30T01:01:28 fix warnings with USE_DEBUG svn:r891
Niels Provos 9e92909c 2008-03-29T01:47:04 from trunk: make event methods static so that they are not exported; from Andrei Nigmatulin svn:r693
Niels Provos d1360598 2008-03-02T01:48:09 from trunk: Do not free the kqop file descriptor in other processes, also allow it to be 0; from Andrei Nigmatulin svn:r683
Niels Provos b23f1dbe 2007-12-14T07:18:02 from trunk: move EV_PERSIST handling out of the event backends svn:r592
Niels Provos 9a708389 2007-12-13T05:58:05 from trunk: remove obsolete recalc code svn:r586
Niels Provos 7717cec7 2007-11-27T06:15:36 from trunk: provide event_reinit() to reinitialized an event_base after fork - necessary for epoll/kqueue svn:r557
Nick Mathewson 5ff1fd7a 2007-11-25T17:15:39 r14945@tombo: nickm | 2007-11-25 12:13:05 -0500 Make kqueue pass more unit tests. (Backport) svn:r545
Niels Provos 6b4342db 2007-11-12T02:37:25 copy trunk to 1.4 svn:r512