diff options
author | Nick Mathewson <nickm@torproject.org> | 2009-10-27 06:47:25 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2009-10-27 06:47:25 +0000 |
commit | 904b5721cb239fd6cc1dd52471f81b4c89f42cbb (patch) | |
tree | 493ffe7f0f52630603aadef5869b4fdaa5a6c465 /ChangeLog | |
parent | a2a7d1d12316c7e317e5f4bd3f8a18aa91027c95 (diff) | |
download | libevent-904b5721cb239fd6cc1dd52471f81b4c89f42cbb.tar.gz |
Avoid calling exit() during event_base_new*()
Previously, each of the three make-an-event-base functions would exit
under different, weird circumstances, but return NULL on others.
- All three would exit on OOM sometimes.
- event_base_new() and event_init() would die if all backends were
disabled.
- None of them would die if the socketpair() call failed.
Now, only event_init() exits on failure, and it exits on every kind of
failure. event_base_new() and event_base_new_with_config() never do.
svn:r1472
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -35,6 +35,7 @@ Changes in 2.0.3-alpha: o Add an API to replace all fatal calls to exit() with a user-provided panic function. o Replace all assert() calls with a variant that is aware of the user-provided logging and panic functions. o Add a return value to event_assign so that it can fail rather than asserting when the user gives it bad input. event_set still dies on bad input. + o The event_base_new() and event_base_new_with_config() functions now never call exit() on failure. For backward "compatibility", event_init() still does, but more consistently. Changes in 2.0.2-alpha: |