ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev.pod
(Generate patch)

Comparing libev/ev.pod (file contents):
Revision 1.29 by root, Thu Nov 22 12:28:28 2007 UTC vs.
Revision 1.30 by root, Fri Nov 23 04:36:03 2007 UTC

234This function reinitialises the kernel state for backends that have 234This function reinitialises the kernel state for backends that have
235one. Despite the name, you can call it anytime, but it makes most sense 235one. Despite the name, you can call it anytime, but it makes most sense
236after forking, in either the parent or child process (or both, but that 236after forking, in either the parent or child process (or both, but that
237again makes little sense). 237again makes little sense).
238 238
239You I<must> call this function after forking if and only if you want to 239You I<must> call this function in the child process after forking if and
240use the event library in both processes. If you just fork+exec, you don't 240only if you want to use the event library in both processes. If you just
241have to call it. 241fork+exec, you don't have to call it.
242 242
243The function itself is quite fast and it's usually not a problem to call 243The function itself is quite fast and it's usually not a problem to call
244it just in case after a fork. To make this easy, the function will fit in 244it just in case after a fork. To make this easy, the function will fit in
245quite nicely into a call to C<pthread_atfork>: 245quite nicely into a call to C<pthread_atfork>:
246 246

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines