event.c


Log

Author Commit Date CI Message
Niels Provos cb1a7223 2009-01-27T16:29:48 Fix memory leak when setting up priorities; reported by Alexander Drozdov Backport from Libevent 2.0 commit 1c927b7
Nick Mathewson bd03d068 2010-01-14T18:22:00 Re-add event_siglcb; some old code _was_ still using it. :( Such code really needs to migrate to use signal events instead. This reverts commit 072ae5887e8064da500adbd2d24050bb96fbe75d.
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 b4183c73 2009-11-09T19:55:40 Stop too many bytes for activequeues. We were saying calloc(N,N*sizeof(struct event_list*)) when we should have been saying calloc(N,sizeof(struct event_list*)). This wasted N*(N-1) words of memory, where N was the number of priorities. This wouldn't be a big deal for any sane number of priorities, but it's a bug nonetheless. svn:r1526
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
Nick Mathewson 072ae588 2009-09-23T22:19:00 Remove unused event_gotsig code from 1.4 to appease some automated code checkers svn:r1433
Nick Mathewson 0ae18517 2009-07-17T19:00:22 Backport: Update event_tv when time jumps backwards, so that we only note each jump once. Not strictly needed in 1.4, but good for correctness. svn:r1354
Niels Provos 0ede290b 2009-01-19T23:42:19 from trunk: bug fix and potentital race condition from Alexander Drozdov svn:r1026
Niels Provos dfa9cb5d 2008-12-13T06:12:05 from trunk: constify structs; from Andrei Nigmatulin svn:r960
Niels Provos 1958f3a7 2008-11-27T19:59:06 from trunk: fix a typo in setting the global event base; reported by lance svn:r954
Niels Provos e92d88c5 2008-11-27T19:29:22 from trunk: Clear the timer cache when leaving the event loop; reported by Robin Haberkorn svn:r951
Niels Provos b93c182f 2008-10-30T19:40:35 from trunk: clear the timer cache on entering event loop; reported by Victor Chang svn:r945
Niels Provos 111ddedd 2008-10-03T15:23:47 fix merge error: event_add would not return error for some backends; from Dean McNamee svn:r943
Niels Provos 541290f6 2008-07-25T01:34:22 from trunk: make event_add not change any state if it fails; repoted by Ian Bell svn:r924
Niels Provos 7c7ab279 2008-07-25T00:53:17 from trunk: fix a problem with epoll() and reinit; repoted by Alexander Drozdov svn:r919
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 0690f0f5 2008-06-30T01:01:28 fix warnings with USE_DEBUG svn:r891
Niels Provos 9ce23feb 2008-05-17T02:19:21 constify struct timeval * svn:r837
Niels Provos 38e97b14 2008-05-16T01:58:05 from trunk: Fix use of freed memory in event_reinit; pointed out by Peter Postma svn:r835
Nick Mathewson ff6cbd06 2008-05-08T14:19:34 r19654@catbus: nickm | 2008-05-08 10:12:53 -0400 Remove #include "misc.h"s. svn:r794
Nick Mathewson 987597ff 2008-05-08T14:08:12 r19651@catbus: nickm | 2008-05-08 10:05:35 -0400 Replace gettimeofday() usage with a new evutil_gettimeofday(). This removes all previous need for win32-code/misc.[ch] svn:r793
Nick Mathewson fe3c4a24 2008-05-07T20:11:37 r19631@catbus: nickm | 2008-05-07 16:06:48 -0400 Backport: fix compilation on non-c99 platforms. svn:r781
Niels Provos d58a0a7c 2008-05-04T00:52:57 revert to maintain stability: from trunk: separate signal events from io events svn:r764
Niels Provos 974a7543 2008-05-03T21:40:32 from trunk: separate signal events from io events svn:r761
Niels Provos bfdf56c2 2008-05-03T18:27:24 from trunk: cache clock_gettime/gettimeofday values in base svn:r759
Niels Provos e1ab038b 2008-02-25T07:35:57 from trunk: do not insert event into list when evsel->add fails svn:r661
Niels Provos 72ae0a2e 2008-02-16T06:10:52 from trunk: event_base_get_method; from Springande Ulv svn:r636
Niels Provos d5aeeca0 2008-01-26T07:34:47 from trunk: remove pending timeouts on event_base_free svn:r628
Niels Provos 108ee5f3 2007-12-19T04:52:28 from trunk: r15171@tombo: nickm | 2007-12-06 12:47:47 -0500 Use GCC attributes (where available) to verify printf type-correctness. Fix some bugs this turned up. svn:r603
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 eecd6932 2007-12-12T06:26:07 from trunk: Patch from Scott Lamb: Implement event_{base_}loopbreak. Includes documentation and tests. From sf.net Feature Request 1826546. svn:r584
Niels Provos 75cc61bf 2007-11-27T06:46:44 from trunk: we need to pass the evbase to evsel->add svn:r559
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
Niels Provos a060b24c 2007-11-14T17:53:43 from trunk: provide event_base_new() without setting current_base global svn:r530
Niels Provos 57fe6ed2 2007-11-13T03:33:07 from trunk: free minheap; from Christopher Layne svn:r526
Niels Provos 5c796d74 2007-11-12T06:56:02 from trunk: We do not need to specially remove a timeout before calling event_del; patch from Christopher Layne. svn:r520
Niels Provos 6b4342db 2007-11-12T02:37:25 copy trunk to 1.4 svn:r512