X-Git-Url: https://git.llucax.com/software/libev.git/blobdiff_plain/99c0baac0b99f53c7a0bb4a0c5a8a10e8b97605f..23f51f36bfcf6f217b2a14967f968af5dd4675e7:/ev.html diff --git a/ev.html b/ev.html index 05a81f1..fbfaeea 100644 --- a/ev.html +++ b/ev.html @@ -6,7 +6,7 @@ - + @@ -239,8 +239,9 @@ it's really slow, but it still scales very well (O(active_fds)).

EVMETHOD_ALL
-

Try all backends (even potentially broken ones). Since this is a mask, you -can do stuff like EVMETHOD_ALL & ~EVMETHOD_KQUEUE.

+

Try all backends (even potentially broken ones that wouldn't be tried +with EVFLAG_AUTO). Since this is a mask, you can do stuff such as +EVMETHOD_ALL & ~EVMETHOD_KQUEUE.

@@ -273,9 +274,9 @@ earlier call to ev_loop_new.

one. Despite the name, you can call it anytime, but it makes most sense after forking, in either the parent or child process (or both, but that again makes little sense).

-

You must call this function after forking if and only if you want to -use the event library in both processes. If you just fork+exec, you don't -have to call it.

+

You must call this function in the child process after forking if and +only if you want to use the event library in both processes. If you just +fork+exec, you don't have to call it.

The function itself is quite fast and it's usually not a problem to call it just in case after a fork. To make this easy, the function will fit in quite nicely into a call to pthread_atfork: