diff options
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | ev.pod | 11 | ||||
-rwxr-xr-x | import_libevent | 2 |
3 files changed, 12 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 13e627e..431c8d4 100644 --- a/configure.ac +++ b/configure.ac @@ -1,6 +1,6 @@ AC_INIT(ev_epoll.c) -AM_INIT_AUTOMAKE(libev,1.85) +AM_INIT_AUTOMAKE(libev,1.86) AM_CONFIG_HEADER(config.h) AM_MAINTAINER_MODE @@ -406,9 +406,18 @@ etc.). None of the active event watchers will be stopped in the normal sense, so e.g. C<ev_is_active> might still return true. It is your responsibility to either stop all watchers cleanly yoursef I<before> calling this function, or cope with the fact afterwards (which is usually -the easiest thing, youc na just ignore the watchers and/or C<free ()> them +the easiest thing, you can just ignore the watchers and/or C<free ()> them for example). +Not that certain global state, such as signal state, will not be freed by +this function, and related watchers (such as signal and child watchers) +would need to be stopped manually. + +In general it is not advisable to call this function except in the +rare occasion where you really need to free e.g. the signal handling +pipe fds. If you need dynamically allocated loops it is better to use +C<ev_loop_new> and C<ev_loop_destroy>). + =item ev_loop_destroy (loop) Like C<ev_default_destroy>, but destroys an event loop created by an diff --git a/import_libevent b/import_libevent index 9f4e35d..2f2fc2c 100755 --- a/import_libevent +++ b/import_libevent @@ -107,7 +107,7 @@ perl -ne ' s/-Wall//g; #s/libevent/libev/g; #VERSION - s/AM_INIT_AUTOMAKE\s*\(.*,(.*)\)/AM_INIT_AUTOMAKE(libevent-$1+libev,1.85)/; + s/AM_INIT_AUTOMAKE\s*\(.*,(.*)\)/AM_INIT_AUTOMAKE(libevent-$1+libev,1.86)/; s/AC_LIBOBJ\(select\)/: ;/g; s/AC_LIBOBJ\(poll\)/: ;/g; s/AC_LIBOBJ\(kqueue\)/: ;/g; |